+

Search Tips   |   Advanced Search

Set a JAX-WS client for WS-Transaction context


Configure the way that a Java API for XML Web Services (JAX-WS) client handles Web Services Atomic Transaction (WS-AT) or Web Services Business Activity (WS-BA) context by configuring the Web Services Transaction (WS-Transaction) policy type. We can specify that the client must send context, can send context if it is available, or must not send context.

A JAX-WS client must be installed.

Configure a WS-Transaction policy set using the admin console, as described in this task, or we can configure a WS-Transaction policy set using wsadmin.

To configure a JAX-WS client for WS-Transaction context using the admin console...

 

  1. Create a new policy set, or copy and rename an existing policy set. We can copy an existing user-defined policy set, or one of the WS-Transaction default policy sets (WSTransaction or SSL WSTransaction). See Create policy sets .

  2. Check that the policy set includes the WS-Transaction policy type. If necessary, add the WS-Transaction policy type. See Add policies to policy sets .
  3. Set the WS-Transaction policy.

  4. Associate the policy set with the JAX-WS client. See Manage policy sets and bindings for service clients.

  5. Choose a WS-Policy application rule that includes the configured policy of the client, that is, client only or client and provider. See Set the client.policy using a service provider policy.

  6. Save the changes to the master configuration.

 

Next steps

The JAX-WS client is configured to use WS-Transaction context in the way specified.

 

Related concepts


WSTransaction default policy sets
Web Services Atomic Transaction support in the appserver
Web Services Business Activity support in the appserver

 

Related tasks


Set a JAX-WS Web service for WS-Transaction context
Set a WS-Transaction policy set using wsadmin
Create policy sets
Add policies to policy sets
Set the WS-Transaction policy
Manage policy sets and bindings for service clients at the application level
Set the client.policy using a service provider policy
Use WS-Transaction policy to coordinate transactions or business activities for Web services