NonStop SOAP User's Manual

NonStop SOAP Features and Functions
NonStop SOAP User’s Manual520501-012
4-9
Ending a Session
In Example 4-9, the client requests an end to the session without invoking any other
service.
The response indicates that the session has ended. The text Session ended is
always present in such a response.
Session Timeout
NonStop SOAP defines the environment variable SOAP_SESSION_TIMEOUT to
specify the time, in minutes, during which an inactive session will stay valid. After the
timeout period has elapsed, the SOAP server automatically ends the session.
You specify SOAP_SESSION_TIMEOUT in the NonStop SOAP configuration file
described in NonStop SOAP Configuration File on page 4-60.
Example 4-8. Response to Last Request of Session
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" >
<SOAP-ENV:Body>
<GetBalanceResponse><Quantity>1621</Quantity></GetBalance
Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example 4-9. Ending a Session without Invoking a Service
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" >
<SOAP-ENV:Header xmlns:sd="urn:compaq_nsk_oss_SoapHeader">
<sd:Session
SessionID="UnC9BZ21FAKG" SessionCommand="End"/>
</SOAP-ENV:Header>
<SOAP-ENV:Body/>
</SOAP-ENV:Envelope>
Example 4-10. Response to Indicate that Session Has Ended
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" >
<SOAP-ENV:Body>
<Response>
Session ended.
</Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>