Property sets using Substring and XPath

Document created by Dave Murphy Employee on Jul 19, 2017
Version 1Show Document
  • View in full screen mode

Extraction can be performed on any HTTP message, such as the header or response of the message using the following steps.

 

Property Set - Substring Retrival Method

  • To add a property set, select the Property Sets node and click the Plus icon to add a new Property Sets form to the message.

Note: This can be performed in either the Target Editor for a given operation (e.g. "get" or any other operation listed in the given target) or in the Clip Editor at the message level within the lower panel Message Editor). Note that target-level property sets will propagate for all messages based on the given target while message-level property sets are restricted to the one message).

By default "The value of this field” is set to "Field" and "Retreived using" is set to "Substring"

  • Enter the leading text of the value to be extracted in "Leading Text".
  • Enter the trailing text of the value to be extracted in "Trailing Text".
  • Enter the lenght of value you want to extract(leaving the Traling Text field empty) when you know the length of extraction value.

Property Set - Xpath Retrival Method

  • Change "Retrieved using" t from default "Substring" to "Xpath".
  • Click "Edit Xpath" link and enter the xpath for the extraction value.
  • Select appropriate response type in "Response Type"

  • In the “Will be stored in this property” section of the form, ensure that Type is set to Custom.
  • Change Starting Element to “CurrentMessage”.
  • Enter a property path as a name for the custom property. This name will appear as a node in Property Value widgets with the response values shown. For example, Cust_ID.
  • For this example, set the Starting Element to Current Message so that analytics are created for each message.
  • In the Automatic Creation drop-down, select “Create and save value in analytics.
  • Save the target after making these changes.

Attachments

    Outcomes