NonStop SOAP User's Manual
NonStop SOAP Features and Functions
NonStop SOAP User’s Manual—520501-012
4-6
Continuing a Session
Continuing a Session
To continue a session, the client sends a SOAP message, specifying the session ID as
the value of the SessionID attribute of the Session element.
In Example 4-4, the client requests to run a service within an existing session identified
by the session ID UnC9BZ21FAKG.
The SOAP response indicates the session can be continued in a subsequent request.
(If the session could not be continued, the response would not contain the session ID,
as illustrated in other examples in this section.)
Example 4-3. Session Initiation Request with Empty Body
<SOAP-ENV:Envelope xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header xmlns:sd="urn:compaq_nsk_oss_SoapHeader">
<sd:Session SessionCommand="Begin"/>
</SOAP-ENV:Header>
<SOAP-ENV:Body/>
</SOAP-ENV:Envelope>
Example 4-4. Request Continuing a Session
<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>
<GetBalance><ItemNo>10029389760</ItemNo></GetBalance>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>