The Close Session (SessionCloseRQ) service is used to close a SOAP API session.
This service is required to close connections because it properly cleans up the session and releases all resources allocated behind the scenes. If an application does not make use of SessionCloseRQ it risks running out of system resources. A live connection to Sabre Web Services, a valid binary security token, and a conversation ID are required to use this service.
When a client application sends a correctly-formatted SessionCloseRQ message along with the security token and conversation ID for the session to be closed, theSabre Web Services gateway does the following:
- Terminates the Sabre session that was allocated to the connection.
- Discards content in the Sabre work area (AAA)
- Invalidates the security token
Errors are returned in SOAP fault format, with or without ebXML headers.
<SessionCloseRQ> <POS> <Source PseudoCityCode="FF9A"/> </POS> </SessionCloseRQ>
<SessionCloseRS version="1" status="Approved" xmlns="http://www.opentravel.org/OTA/2002/11"/>