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:
Click View > Connections. The Connection Manager dialog box appears.
Select the Adapter for Web
Services.
Click Edit. The Connection Settings dialog box appears.
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.
Verify the Web Services adapter is selected and click OK. The Web Service Connection Manager dialog box appears.
Select the Web Services connection and click Edit. The Edit Web Service dialog box appears.
Click the Configuration
tab, and select the Web Service method you wish to use for the Log
On method.
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.
Click the Validation tab and select either the Log
On or Log Off method.
When you are finished, click Save. You return to the Web Service Connection Manager dialog box.
Click Close. You return to the Connection Information dialog box.
Click Cancel. You return to the Connection Settings dialog box.
If you click OK, you return to the Web Service Connection Manager dialog box.
Click OK. You return to the Connection Manager dialog box.