NonStop SOAP 4.1 User's Manual

Begin a New Session
To start a new session, the client must set the value of the SessionCommand attribute (in the
session header block of the NonStop SOAP 4 request header element) to Begin.
Figure 18 shows a schematic flow for beginning a new session.
Figure 18 Beginning a New Session
Session Command = “Begin”
SessionID = “<TemporaryID>”
Invoke Service
Response
SOAP
Client
NonStop
SOAP 4
Server
NonStop
SOAP 4
Service
When starting a new session, NonStop SOAP 4 performs the following activities:
1. The SOAP server generates a temporary SessionID.
2. If the body of the SOAP message requests a target service, NonStop SOAP 4 invokes the
operation.
3. When the invoked service responds back to NonStop SOAP 4, or if there is no service request
in the SOAP message body, the SOAP server constructs a session header block containing
the SessionID attribute set to the temporary value created earlier.
4. The response is sent back to the client.
Example 25 shows a request/response pair of messages to begin a new session.
250 Transaction Management