NonStop SOAP User's Manual

NonStop SOAP Features and Functions
NonStop SOAP User’s Manual520501-012
4-7
Aborting a Subsession
Aborting a Subsession
To abort a subsession, the client sends a SOAP message specifying a value of
“AbortSubsession” for the SessionCommand attribute of the SOAP header.
The response will not include the Subsession attribute, unless the request that aborts a
subsession also invokes another context-sensitive service.
If the target service supports one transaction per dialog, aborting a subsession
automatically aborts a transaction in progress. If the service supports multiple
transactions per dialog, aborting a subsession does not automatically abort a
transaction in progress.
Example 4-6 shows the body of a request that aborts a subsession can be empty.
Ending a Session
The SOAP server ends a session if the client requests that a session end or if a
specified time interval has elapsed since the last request for the session.
Example 4-5. Response Showing Session Still in Progress
<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"/>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<GetBalanceResponse><Quantity>1621</Quantity></GetBalance
Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example 4-6. Request to Abort a Subsession
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<Id:Session SessionId=" QK797dd69023"
SessionCommand="AbortSubsession"
xmlns:Id=" urn:compaq_nsk_oss_SoapHeader"/>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>