rollback
The rollback service request is an http HTTP request message sent to the UMS in accordance with the Simple Messaging API or the XML Messaging API.
The rollback service request must conform to the following criteria:
Required field/attribute values |
Optional field/attribute values |
service=rollback |
|
sid |
|
Notes:
A rollback service request is supported only for a transacted session. A transacted session is created by sending a login request with the transacted attribute set to true.
A rollback request MUST contain an sid attribute with its value set to a secure token obtained from the previous login_reply message.
A new transaction is automatically started after a successful rollback service request.
Service response message: rollback_reply
1. Simple Messaging API Example:
The following is a rollback service request.
POST /ums/simple?service=rollback&sid=3-LTgxMDczMTczNQ==
HTTP/1.1
Content-Type: text/plain;charset=UTF-8
User-Agent:
Java/1.6.0_07
Host: localhost:8888
Accept: text/html,
image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0
2.
XML Messaging API Example:
The following is a rollback service request.
POST /ums/xml HTTP/1.1
Accept: text/xml, text/html, image/gif,
image/jpeg, *; q=.2, */*; q=.2
Content-Type: text/xml;
charset=utf-8
Content-Length: 373
SOAPAction: ""
Cache-Control: no-cache
Pragma: no-cache
User-Agent:
Java/1.6.0_07
Host: localhost:8888
Connection: keep-alive
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<ums:MessageHeader
xmlns:ums="https://mq.dev.java.net/ums" ums:id="1.0"
ums:version="1.0">
<ums:Service
ums:service="rollback"
ums:sid="3-LTgxMDczMTczNQ=="/>
</ums:MessageHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body/>
</SOAP-ENV:Envelope>
Back to
UMS protocol page.