NonStop SOAP 4.1 User's Manual
Example 30 Abort a Transaction within a Session
Client Request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:compaq_nsk_oss_SoapHeader">
<soapenv:Header>
<urn:Session SessionID="234567" Command="Abort"/>
</soapenv:Header>
<soapenv:Body>
.
.
.
</soapenv:Body>
</soapenv:Envelope>
NonStop SOAP 4 Response
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:compaq_nsk_oss_SessionHeader">
<soapenv:Header>
<urn:Session SessionID="Tempmj12rty67"/>
</soapenv:Header>
<soapenv:Body>
.
.
.
</soapenv:Body>
</soapenv:Envelope>
where,
234567
is the TMF transaction identifier of the transaction to be aborted.
NOTE: HP recommends that the body of a request that aborts a transaction be empty. The
transaction is aborted before any service invocation. This means that there will not be an active
transaction when the service is invoked.
End the Session
To end an active session, the client must set the value of the SessionCommand attribute in the
session header block of the SOAP request header element to End and also provide the appropriate
SessionID – that is, the SessionID value supplied in the previous response from NonStop
SOAP 4 for this session.
On receiving a SOAP request to end a session:
1. The NonStop SOAP 4 server ends the temporary session in response to a client request.
2. If the body of the request invokes a target service, the NonStop SOAP 4 server performs the
operation specified in the body without a session.
3. The NonStop SOAP 4 server returns the response to the client.
4. The NonStop SOAP 4 server does not include a session header block in the response message.
Example 31 shows a request/response pair of messages to end a session.
256 Transaction Management










