mq5.0-source.src.share.java.webapps.ums.protocol.commit.html Maven / Gradle / Ivy
commit
The commit 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 commit service request must conform to the following
criteria:
Required field/attribute values
Optional field/attribute values
service=commit
sid
Notes:
A commit 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 commit 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
commit service request.
Service response message: commit_reply
1. Simple Messaging API
Example:
The following is a commit service request.
POST /ums/simple?service=commit&sid=4-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 commit 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: 393
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.java.net/ums" ums:id="1.0"
ums:version="1.0">
<ums:Service
ums:service="commit"
ums:sid="7-LTgxMDczMTczNQ=="
/>
</ums:MessageHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body/>
</SOAP-ENV:Envelope>
Back
to UMS protocol page.