WAS v8.5 > Script the application serving environment (wsadmin) > Configure servers with scripting > Configure the runtime transaction service using scripting

Configure the WS-Transaction specification level using wsadmin.sh

We can configure the default WS-Transaction specification level to use for outbound requests that include a Web Services Atomic Transaction (WS-AT) or Web Services Business Activity (WS-BA) coordination context. WAS v8.5 supports the WS-Transaction 1.0, the WS-Transaction 1.1 and the WS-Transaction 1.2 specifications, but when an outbound request is sent, only one specification level can be used. The default WS-Transaction specification level is used if the specification level the server requires cannot be determined from the provider policy (the WS-Transaction WS-Policy assertion). This situation might occur when the policy assertion is not available either from the WS-Transaction policy type of the client or from the WSDL of the target web service. Also, this situation might occur when the policy assertion is available, but the client and the target web service support both specification levels.

For details of the specifications, see the topics about Web Services Atomic Transaction support and Web Services Business Activity support in the application server.

We can set the default WS-Transaction specification level using wsadmin.sh, as described in this task, or using the dmgr console and configuring the relevant transaction property for the application server.

  1. Start the wsadmin scripting client if it is not already running.
  2. Retrieve the configuration ID of the transaction service. In Jacl, use the following code example:

      set txService $AdminConfig list TransactionService
    In Jython, use the following code example:

  3. Modify the WSTransactionSpecificationLevel attribute to the value you require. In Jacl, to configure the server to use WS-Transaction 1.1, use the following code example:

      $AdminConfig modify $txService {{WSTransactionSpecificationLevel WSTX_11}}
    In Jython, to configure the server to use WS-Transaction 1.0, use the following code example:

      AdminConfig.modify ($txService,[["WSTransactionSpecificationLevel", "WSTX_10"]])

  4. Save the configuration changes with wsadmin.


Results

You have configured the default WS-Transaction specification level for the server.


Related concepts:

Web Services Atomic Transaction support in the application server
Web Services Business Activity support in the application server


Related


Save configuration changes with wsadmin
Configure transaction properties for an application server
Use WS-Transaction policy to coordinate transactions or business activities for web services


+

Search Tips   |   Advanced Search