Creating a security token for the request message

The first step in implementing basic authentication is to create a security token for the request message to be sent by the import. The security token is sent to the server inside the header of the SOAP message.

Before you create a security token for the request message, you should configure the server for security as described in the topic "Enabling security on the server."
To create a security token for the request message:
  1. In the Business Integration view, select the module that contains your Web services import, as shown in the following figure:
    Picture of a module selected in the Business Integration view
  2. Right-click the selected module and select Open Deployment Editor. The module deployment editor opens.
  3. Click the Import WS-Security tab.
  4. Click the WS Extension tab. The Web Service Client Security Extensions page opens, as shown in the following figure:
    Picture of the Web Service Client Security Extensions page in the module deployment editor
  5. In the Service References section, select the Web service reference corresponding to your Web service import. For example, in the above figure, the Web service reference sca/import/sendWebServiceCallToServer is selected.
  6. In the Port Qname bindings section, select the port qualified name binding that you want to use for the Web service reference that you selected. The port qualified name binding comes from the port name of your Web service import. For example, in the above figure, the port qualified name binding receiveWebServiceCallFromClient_ServerInterfaceHttpPort is selected.
  7. Expand the Request Generator Configuration section.
  8. Expand the Security Token subsection.
  9. Click Add. The Security Token dialog box opens.
  10. In the Name field, type a name for the new security token. For example, basicAuth.
  11. In the Token type drop-down list, select Username. (The Local name field is automatically populated with a default value.)
  12. Leave the URI field blank. No URI value is required for a username token. The Security Token dialog box should now resemble the following figure:
    Picture of the Security Token dialog box
  13. Click OK. The new security token basicAuth is displayed, as shown in the following figure:
    Picture of the new security token basicAuth
  14. Press Ctrl-S to save your changes.
Now that you have created a security token, you should create a token generator as described in the topic "Creating a token generator for the request message".
Related tasks
Enabling security on the server
Creating a token generator for the request message
Creating a required security token for the request message
Creating a caller part for the request message
Creating a token consumer for the request message
Testing authentication using the integration test client
Disabling security on the server

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.