All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mq5.0-source.src.share.java.webapps.ums.protocol.close.html Maven / Gradle / Ivy

There is a newer version: 5.1
Show newest version





	
	
	
	
	
	


close

The close service request is an http request message sent to the UMS in accordance with the Simple Messaging API or the XML Messaging API.

The close service request must conform to the following criteria:

Required field/attribute values

Optional field/attribute values

service=close


sid=



Notes:

The close service request is used to close the UMS client session that was created with a login service request. A close service request message MUST contain an sid attribute with its value set to the secure token obtained from the previous login_reply response message.

Service response message: close_reply

1. Simple Messaging API Example:

The following is a close service request message.

POST /ums/simple?service=close&sid=2-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 close service request message.

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: 370
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="close"
                     ums:sid="2-LTgxMDczMTczNQ=="/>
              </ums:MessageHeader>
       </SOAP-ENV:Header>
       <SOAP-ENV:Body/>
</SOAP-ENV:Envelope>

Back to UMS protocol page.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy