@webservice inheritance java

Posted by javamonkey79 on Stack Overflow See other posts from Stack Overflow or by javamonkey79
Published on 2010-03-24T01:09:29Z Indexed on 2010/03/24 1:13 UTC
Read the original article Hit count: 441

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about javaee