LibraryToggle FramesPrintFeedback

The JAX-WS annotations specify the metadata used to map the SEI to a fully specified service definition. Among the information provided in the annotations are the following:

  • The target namespace for the service.

  • The name of the class used to hold the request message

  • The name of the class used to hold the response message

  • If an operation is a one way operation

  • The binding style the service uses

  • The name of the class used for any custom exceptions

  • The namespaces under which the types used by the service are defined

[Tip]Tip

Most of the annotations have sensible defaults and it is not necessary to provide values for them. However, the more information you provide in the annotations, the better your service definition is specified. A well-specified service definition increases the likelihood that all parts of a distributed application will work together.

Comments powered by Disqus
loading table of contents...