Configure a WS-ReliableMessaging policy set using the administrative console
To configure a web service application to use WS-ReliableMessaging, you attach a policy set containing a WS-ReliableMessaging policy type. This policy type offers a range of qualities of service: managed persistent, managed non-persistent, or unmanaged non-persistent. Use the administrative console to configure a policy set for reliable messaging.
We can configure a reliable messaging policy set using the administrative console as described in this task, or we can configure a reliable messaging policy set .
The following default policy sets work with WS-ReliableMessaging applications:
- WS-I RSP
- WS-I RSP ND
- LTPA WS-I RSP
- Username WS-I RSP
- WSReliableMessaging 1_0
- WSReliableMessaging default
- WSReliableMessaging persistent
See WS-ReliableMessaging default policy sets.
If we can use any of these default policy sets without needing to modify their configuration, we need not complete this task. We are ready to attach and bind the default policy set to the application.
At any stage - that is, before or after we have built your reliable web service application, or configured your policy sets - we can set a property that configures endpoints to only support clients that use reliable messaging. This setting is reflected by WS-Policy if engaged.
To configure a reliable messaging policy set using the administrative console:
Tasks
- Create a policy set. Create a new policy set, or copy and rename an existing policy set - either one that we have previously created, or one of the WS-ReliableMessaging default policy sets.
- Check that your policy set includes the policy types WS-ReliableMessaging and WS-Addressing. Add these policy types if necessary. These policy types contain the configuration options that support WS-ReliableMessaging. WS-Addressing provides the asynchronous request and reply capabilities for WS-ReliableMessaging, and is also required for WS-ReliableMessaging Version 1.1 synchronous messaging.
- To use secure conversation and reliable messaging policies in the same policy set, the secure conversation bindings must be configured to require that the reliable messaging headers are signed. The reliable secure profile default policy sets (WS-I RSP and WS-I RSP ND) are specifically designed and configured to use secure conversation and reliable messaging in the same policy set. If we use a copy of one of the reliable secure profile default policy sets (WS-I RSP and WS-I RSP ND), no further configuration of the secure conversation bindings is required. Otherwise, see Configure WS-SecureConversation to work with WS-ReliableMessaging.
- WS-ReliableMessaging Version 1.1 messaging requires WS-Addressing to be mandatory. If we use a policy set that includes WS-ReliableMessaging and WS-Addressing policies, and the WS-Addressing policy is configured as optional, then WAS overrides the WS-Addressing setting and automatically enables WS-Addressing.
- Configure the WS-ReliableMessaging policy type attributes. For the WS-ReliableMessaging policy we can configure the version of the WS-ReliableMessaging standard to use, the order in which messages are delivered, and the required quality of service (the reliability level) for message delivery.
In WAS v6.1, we could also configure whether or not to use the WS-MakeConnection protocol. This configuration option has now been removed from the administrative console panel, because the product now automatically determines whether WS-MakeConnection is used, based on the following criteria:
- Whether we are using WS-ReliableMessaging Version 1.0 or Version 1.1.
- Whether the requester supports WS-MakeConnection.
- Whether the message exchange protocol is synchronous or asynchronous.
- If required, configure the WS-Addressing policy type attributes. For example, the default WS-Addressing policy messaging style is Synchronous and asynchronous, which specifies that there is no restriction on the targeting of response messages. However if we enable policy sharing, the WS-Policy framework determines which style to use, and has a preference for the synchronous request-response pattern. Because the WS-Policy framework takes precedence, reliable messages are sent in a synchronous request-response pattern even if the client invokes the service asynchronously. To enforce asynchronous messaging, set the WS-Addressing policy messaging style to asynchronous only.
- Save changes to the master configuration.
What to do next
We are now ready to attach the application to the policy set and define the bindings to use.
Subtopics
- Configure a WS-ReliableMessaging policy set
To configure a web service application to use WS-ReliableMessaging, you attach a policy set containing a WS-ReliableMessaging policy type. This policy type offers a range of qualities of service: managed persistent, managed non-persistent, or unmanaged non-persistent. Use command scripts to configure a policy set for reliable messaging.- Configure WS-SecureConversation to work with WS-ReliableMessaging
Configure secure conversation to expect the reliable messaging headers to be signed, and to ensure that the scoping security context token does not expire before reliable messaging recovers and resends persistent messages.
Configure endpoints to only support clients that use WS-ReliableMessaging Add assured delivery to web services through WS-ReliableMessaging Create policy sets Configure the WS-ReliableMessaging policy Manage policy sets Use WS-Policy to exchange policies in a standard format WS-ReliableMessaging Detect and fix problems with WS-ReliableMessaging