WAS v8.5 > Develop 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 dmgr console, we 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. You must create a copy of the default policy set or create a completely new policy set in order to specify the policies for it. Adding 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 dmgr console.

  1. In the navigation pane of the dmgr 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 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.


Subtopics


Related


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


Reference:

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


+

Search Tips   |   Advanced Search