Examples

Start a Transaction Within 2 Minutes (success)

This example successfully starts a transaction within 2 minutes.

Request:
<startTransaction id=”101” timeout=”120”></startTransaction>
Response:
<startTransactionResp id=”101”>
  <res error=”0” affected=”0”/>
</startTransactionResp>

Start a Transaction Immediately (fail)

This example attempts to immediately start a transaction but fails due to another client having a transaction open.

Request:
<startTransaction resonly=”n” id=”102”></startTransaction>
Response:
<startTransactionResp id=”102”>
  <startTransaction resonly=”n” id=”102”></startTransaction>
  <res error=”1005” affected=”0”/>
</startTransactionResp>