NonStop SOAP 4.1 User's Manual

Begin a New Session.......................................................................................................250
Begin Transaction within a Session.....................................................................................251
Continue a Transaction within a Session..............................................................................253
Commit a Transaction within a Session...............................................................................254
Abort a Transaction within a Session..................................................................................255
End the Session...............................................................................................................256
The Cookie File................................................................................................................258
Session Timeout...............................................................................................................258
Subsessions.....................................................................................................................259
The SOAP_COOKIE_DELETION_INTERVAL Parameter...........................................................259
13 Using the Contract-First Approach in NonStop SOAP 4..............................260
NonStop SOAP 4 Tools for Developing Web Services Using the Contract-First Approach................260
WSDL Considerations...........................................................................................................260
Using a Pre-defined WSDL File..........................................................................................260
Developing a NonStop SOAP 4 Pathway Web Service Using the WSDL2PWY Tool......................262
Deploying a NonStop SOAP 4 Pathway Web Service...........................................................269
Accessing a NonStop SOAP 4 Pathway Web Service...........................................................269
Developing a NonStop SOAP 4 Non-Pathway Web Service Using the WSDL2C Tool....................270
14 WS–Security in NonStop SOAP 4...........................................................271
Overview of Encryption and Signing.......................................................................................271
Supported WS–Security Features ...........................................................................................273
Securing a NonStop SOAP 4 Service......................................................................................274
Rampart Specific Assertions ..................................................................................................275
Publishing the Security Requirements.......................................................................................277
Configuring the Client to Invoke a Secured Web Service............................................................277
Configuring the Axis2c Client............................................................................................277
Configuring Non–Axis2c Clients........................................................................................278
Extensible Modules ..............................................................................................................278
Sample Programs.................................................................................................................279
Functionality of the Sample Client and Server Program..........................................................280
Running the Web Services Security Sample Programs...........................................................280
WS-Security Scenarios .....................................................................................................281
Scenario 1: Timestamp.................................................................................................281
Scenario 2: UsernameToken.........................................................................................281
Scenario 3: Encryption................................................................................................282
Scenario 4: Signature..................................................................................................282
Scenario 5: Combining TimeStamp, UsernameToken, Encryption, and Signature with Protection
order Sign->Encrypt.....................................................................................................283
Scenario 6: Combining TimeStamp, UsernameToken, Encryption, and Signature with Protection
Order Encrypt->Sign....................................................................................................283
Scenario 7: Symmetric Binding. Encryption using Derived Keys..........................................283
Scenario 8: Symmetric Binding, Signature......................................................................283
Scenario 9: Symmetric Binding. Both Encryption and Signature with Protection Order
Encrypt->Sign.............................................................................................................283
Scenario 10: Symmetric Binding. Both Encryption and Signature with Protection Order
Sign->Encrypt.............................................................................................................283
Scenario 11: Symmetric Binding. Both Encryption and Signature with Protection Order
Encrypt->Signature Encryption.......................................................................................283
Scenario 12: Symmetric Binding. Both Encryption and Signature with Protection Order
Sign->Encrypt. Signature Encryption..............................................................................283
Recommendations.................................................................................................................284
A NonStop SOAP 4 Error and Warning Messages........................................285
NonStop SOAP 4 Error Messages...........................................................................................285
Contents 9