Help_Topics

Web Service Transaction Settings

Web Service Transaction services are similar to Web Service Monitoring services: each step of a Web Service transaction is composed of what would be considered a single Web Service monitor. This allows for the scripting and monitoring of complex web services business activities. Most of the step settings are identical to those of a Web Service monitor, so please refer to Web_Service_Settings to get started.

Web Service Transaction-specific settings are covered below.

Variables Defined in Previous Steps

This section allows you to see the variables which been declared in previous steps. Variables declared in previous steps are available for use throughout the transaction, and the beginning of every step includes this section as a handy reference. An example of a previously defined variables section is shown below:

Variables Defined in this Step

This section is identical to the Variables Defined for this Service section for Web Services Monitoring. Variables defined in this section are available for use throughout the rest of the web service transaction request. Please see Web_Service_Settings for more information.

Web Service Parameters

This section has an additional field from its counterpart in a Web Service Monitoring service.

Step Description

  • Allows for the specification of a short description of the current step. These fields are used to compile a table of contents for easy reference to what the Web Service transaction is accomplishing, as shown below:

Response Verification

This section has an additional field from its counterpart in a Web Service Monitoring service.

Step Timeout

  • Specifies the timeout, in seconds, before the current step of the transaction is recorded as a timeout error in the logs.

Variable Assignment

This feature allows for certain values to be saved from the response for the current step. This variable is defined for the entire lifetime of the transaction and can be used anywhere in subsequent transaction steps. An example Variable Assignment section is shown below:

To define a variable:

  1. Assign a name for the variable, such as HMAC_TOKEN, as in the example above.
  2. Provide a regular expression used to search the response for the value. For example, if a web service request responded with the following:
    <xml>
         <HMAC>123456</HMAC>
         <CartId>567890</CartId>
         <DupField>test1</DupField>
         <DupField>test2</DupField>
    </xml>
    
    • You can assign the value of the HMAC XML tag to the variable HMAC_TOKEN by using the regular expression HMAC>(.*?)</HMAC and either leaving the Nth field blank or setting it to 1
    • You can assign the value of the CardId XML tag to the variable CART_ID by using the regular expression CartId>(.*?)</CartId and either leaving the Nth field blank or setting it to 1
    • You can assign the value of the second DupField XML tag to the variable DUP_FIELD by using the regular expression DupField>(.*?)</DupField as well as the value 2 under the Nth text field for the variable

See also

Web_Service_Settings