I am creating a web service in Java EE 6 by annotating an enterprise bean using @WebService . I need to expose only some of the bean methods, so I added only the necessary @WebMethod to the @WebMethod annotation. Unfortunately, JAX-WS ignores annotations and tries to expose all methods. The problem is that there is one method that is not intended to be used as a web service operation that returns an interface, and JAX-WS cannot be managed, so the web service is not deployed. Is this the expected behavior or am I missing something?
remigio
source share