The EndSession method takes a session token then signs off the user and releases the session token. Session tokens represent GTIDs (global terminal identifiers). As there is a limited number of GTIDs, call EndSession when you are finished calling sessioned transactions to release the session token and return it to the pool. If successful, an empty message is returned; if an error occurs, a Fault is returned.
You do not have to begin and end a session every time you need to call a sessioned transaction. You can call BeginSession, then call as many sessioned transactions as you need before calling EndSession.
Refer to the sample of EndSession for an example of a request. The following samples illustrate how to use the EndSession method using SOAP.
The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.
POST /XMLSelect/XMLSelect.asmx HTTP/1.1 Host: testws.galileo.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://webservices.galileo.com/EndSession" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <EndSession xmlns="http://webservices.galileo.com"> <Token>string</Token> </EndSession> </soap:Body> </soap:Envelope> |
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <EndSessionResponse xmlns="http://webservices.galileo.com" /> </soap:Body> </soap:Envelope> |