Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop web services - Addressing (WS-Addressing) > Enable Web Services Addressing support for JAX-WS applications


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

For JAX-WS applications, you 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 by 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.

Child elements of the addressing deployment descriptor element. The table lists the different child elements with their possible values and a description of each one.

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.


Procedure


Results

WS-Addressing properties are now included in the SOAP message header, and are processed by the server on receipt of the message.
Develop deployment descriptors for a JAX-WS client
Develop a webservices.xml deployment descriptor for JAX-WS applications
Enable Web Services Addressing support for JAX-WS applications

+

Search Tips   |   Advanced Search