Projets
Pages enfant
  • 3.11.1 Ecrire le service à exposer

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

Pour avoir plus d'information sur les annotations JAX-WS Cf.http://jax-ws.java.net/

http://publib.boulder.ibm.com/infocenter/radhelp/v7r5/index.jsp?topic=%2Fcom.ibm.ws.jaxws.emitter.doc%2Ftopics%2Frwsandoc002.html

When you use the @WebService annotation, several rules control how methods are exposed in your Web service and how you can use the @WebMethod annotation.
The following rules apply in this situation:

If the @WebService annotation of an implementation class refers to a Service Endpoint Interface (SEI), the implementation class must have no @WebMethod annotations.
In an SEI or in an implementation class that does not refer to an SEI, all public methods are treated as exposed, even if the @WebMethod annotation is not specified. The exposed public methods include any inherited methods, except for methods in the Object class.
In an SEI or in an implementation class that does not refer to an SEI, if a @WebMethod annotation has an attribute of exclude=true, the method is not exposed.