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 policy sets


Configure the WS-Addressing policy

When working with policy sets in the administrative console, you can add and configure policies to enable standard addressing of web services.

We can specify policies for custom policy sets. The provided default policy sets cannot be edited. Create a copy of the default policy set or create a completely new policy set in order to specify the policies for it.

Add a WS-Addressing policy enables the support for WS-Addressing. This support provides a standard way to address Web services and include addressing information in messages. Adding a WS-Addressing policy is equivalent to configuring the WSDL file for the web service to specify that WS-Addressing should be used.

To specify or configure the policies associated with a policy set, use the administrative console.


Procedure

  1. In the navigation pane of the administrative console, click Services > Policy sets > Application policy sets > policy_set_name > [Policies] WS-Addressing. The WS-Addressing settings pane is displayed.

  2. Select WS-Addressing is mandatory to specify that WS-Addressing information must be included in SOAP message headers. For servers, this setting means that the server returns a fault if it receives a message that does not contain a WS-Addressing header. For clients, this setting means that WS-Addressing headers are always added to SOAP messages. If we have enabled WS-Policy, this requirement is communicated between servers and clients that support WS-Policy.

  3. In the Messaging style box, select the message exchange pattern to use:

    • Synchronous and asynchronous. The targeting of response messages is not restricted.
    • Synchronous only. Response messages must be targeted at the WS-Addressing anonymous URI.
    • Asynchronous only. Response messages must not be targeted at the WS-Addressing anonymous URI.

  4. Click OK.

  5. Save your changes to the master configuration.


Results

After we have included the WS-Addressing policy in a policy set, the associated policy set uses this policy to address web services.


Related


WS-Addressing policy settings
Add policies to policy sets
Delete policies from policy sets
Enable policies for policy sets
Disable policies from policy sets
Web services policies
Add and remove policies using wsadmin.sh
Create policy set attachments using wsadmin
Remove policy set attachments using wsadmin
Manage policy set attachments using wsadmin
Enable Web Services Addressing support for JAX-RPC applications
Modify policies


Related


Application policy sets collection
Application policy set settings
Web Services Addressing policy set binding

+

Search Tips   |   Advanced Search