@webservice inheritance java
- by javamonkey79
I am trying to build a java ee webservice that has a common base class, but the child classes are the actual @webservice classes (and expose the parent class methods as @webmethod's)
Like this:
public abstract class Parent {
@WebMethod
public void doSomething(){//...does stuff}
}
@WebService
public class Child extends Parent {}
I've tried (and have failed):
- annotating the parent class as a webservice as well
- making sure all parent methods are annotated with @WebMethod
Is this possible, if so, how?