Log on and log off methods

Some Web Services may require that you call a Web method to "log on" to the Web Service before using it, or to "log off" of the Web Service.

Usually, the Log On method provides a token that needs to be provided to other Web methods on the Web Service. This token can be captured in a Web Service variable, which can be used on SOAP Header or other Web method parameters.

These Log On and Log Off methods prompt for a user ID and password from users when connecting to a Web Service as a source or target. You can bind the values entered by the user with the :UserID and :Password default values. 

To enter log on or log off methods:

  1. Click View > Connections. The Connection Manager dialog box appears.
  2. Select the Adapter for Web Services.
  3. Click Edit. The Connection Settings dialog box appears.
  4. On the Global Connection Settings tab, click Change Connection. The Adapter for Web Services Connection Information dialog box.

    If you are modifying a connection that is not used in a DTS, click Connection.

  5. Verify the Web Services adapter is selected and click OK. The Web Service Connection Manager dialog box appears.
  6. Select the Web Services connection and click Edit. The Edit Web Service dialog box appears.
  7. Click the Configuration tab, and select the Web Service method you wish to use for the Log On method.
  8. If the Log On method requires a user id and/or password, under that method, select the UserId and Password parameters, as appropriate, and specify in the Value box the values to use.

    Note: If the actual user Id and/or password won’t be known until connect time, bind these parameter to the pre-defined values ":UserID" and ":Password" values available in the Value drop-down list. Using these pre-defined values, the user ID and/or password supplied by the user during connect time are supplied to the appropriate parameter when the Log On method is executed.

  9. Click the Validation tab and select either the Log On or Log Off method.
  10. When you are finished, click Save. You return to the Web Service Connection Manager dialog box.
  11. Click Close. You return to the Connection Information dialog box.
  12. Click Cancel. You return to the Connection Settings dialog box.

    If you click OK, you return to the Web Service Connection Manager dialog box.

  13. Click OK. You return to the Connection Manager dialog box.
  14. Click Close.

See Also

SOAP Headers

Default values

Web Service variables

Samples