+

Search Tips   |   Advanced Search

Enable Web Services Addressing support for JAX-WS applications using deployment descriptors

For JAX-WS applications, we can enable WS-Addressing support during the packaging of either a service or client application, by editing the deployment descriptor for that application.

To modify WS-Addressing behavior using deployment descriptors, add an <addressing> element to the deployment descriptor file for the application. The <addressing> element has optional child elements as described in the following table.

The <addressing> element functions in the same way as the Addressing annotation. The child elements of the <addressing> annotation function in the same way as the parameters of the Addressing annotation.

Element name Possible values Description
enabled true (default)
false

Whether WS-Addressing support is enabled.
required true
false (default)

Whether WS-Addressing headers are required.
responses All (default)
ANONYMOUS
NON_ANONYMOUS

Whether to use a synchronous or an asynchronous message exchange pattern. Specify ANONYMOUS to send messages in a synchronous message pattern; use NON_ANONYMOUS to send messages in an asynchronous message exchange pattern.


Tasks

WS-Addressing properties are now included in the SOAP message header, and are processed by the server on receipt of the message.

  • Developing deployment descriptors for a JAX-WS client
  • Developing a webservices.xml deployment descriptor for JAX-WS applications