TransactionBegin method |
Top Previous Next |
The TransactionBegin method of SOAP/AM Server's built-in transactionControl service is used to begin a new transaction. TransactionBegin returns a txControlResponseType response that includes the identifier of a new transaction (txURL) in the "suspended" state. The client application must copy this txURL to the txControlRequestType header or parameter of each user-defined method that is to participate in the transaction. The returned txURL may also be used as a parameter to the TransactionCommit or TransactionAbort methods. Syntax txResponse = TransactionBegin ( txTimeout ) Parameters
Remarks The TransactionBegin method is part of SOAP/AM Server's built-in transactionControl service. The WSDL for the transactionControl service is located at http://mysystem:port/services/transactionControl/transactionControl.wsdl.
If txTimeout is a negative or non-numeric value, a SOAP fault will occur.
If the SOAP/AM Server cannot begin the transaction for any other reason, the txOutcome element of the response will be "unknown" and the txResult element will contain the NSK file system error.
If SOAP/AM Server successfully begins the transaction, the txOutcome element of the response will be "suspended" and the txURL element will contain the transaction identifier.
A client application may have multiple concurrent active transactions. Note, however, that the total number of active transactions for each SOAP/AM Server process is limited by the NonStop system.
A transaction begun by SOAP/AM Server running on a given NonStop system may be used by any application server running on any NonStop system in the same Expand network. |