Web Service variables

Web Service variables augment the functionality of setting the default value of a parameter on a Web method.

You may want to supply a default value that is a value returned by another Web method call. In this case, you cannot set the default value for the parameter to a (static) string literal, but you can set the value to a "Web Service variable" that represents the value. Runtime variables are used in the same way as default values.

Web Service variables start with a percent sign (%) to distinguish them from default values.

For example, let's say you have a Web method that you want to use as a source. However, the Web method, you must provide a SOAP header containing a hash value based on your user id. This hash value is provided at the time you login to the Web service and is unknown at the time you design the integration.

Web Service variables allow you to define a variable that will represent the hash value at design time; and then use that variable as if it were a static value. This concept is described in greater detail in some of the Samples.

To set a Web Service variable:

  1. In the Scribe Workbench, click View > Connections. The Connection Manager dialog box appears.
  2. Select the Web Service connection and click Edit. The Connection Settings dialog box appears.
  3. Click the Connection tab.
  4. Click Change Connection. The Connection Information dialog box appears.

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

  5. Verify Web Services is selected and click OK. The Web Service Connection Manager dialog box appears.
  6. Select the Web Service you want to edit and click Edit. The Edit Web Service dialog box appears.
  7. Click the Configuration tab.
  8. Expand the Methods node.
  9. Select the method and the parameter that you want to configure.

    Parameter names are prefixed with the direction of the parameter: [In], [Out], [In Out], or [Return].

  10. As you select each parameter, the properties that you can assign display. Select any optional properties that you want to assign.
  11. In the Value text box, type the default value or select it from the list. If desired, enter the Failure Condition for Return parameters.
  12. Note: Insight only inserts data into the SOAP header on the initial connection call. Therefore, you can only use Web Service variables with SOAP header values from the assigned login method or from :Username or :Password variables. See Default Values.

See Also

Configuring the connection

Default values

Editing Web Service connections

Properties

Samples