-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
Documentation (Ref Guide, User Guide, etc.)
@WebService annotation can mark an interface as the SEI. Tools will get the name of the interface that is annotated and will then use reflection on the interface to obtain all the methods that have the @WebMethod annotation to expose as the methods that are part of the SEI contract.
A question I have is:
@WebService
public interface MyService
{
@WebMethod
public void handleOrder(String id) throws RemoteException;
public String getId() throws RemoteException;
}
In the above declaration, the method, getId() does not have a @WebMethod annotation. Is it legal to have only a subset of methods declare @WebMethod and others not? If yes, what should be the behavior? Should tools take all public methods, as the JAXRPC 1.1 Spec says and ignore the @WebMethod annotation.
- duplicates
-
JBWS-441 Java2WSDL ignores @WebMethod
- Closed