Previous Topic: Apply Xpath OperatorNext Topic: Output Parameters


Input Parameters

Input Source

Select the source for the SOAP service input request: Expression or Input File Name.

Expression

Specify the expression to load XML content. For example:

Process.xmlContent 

or

Datasets["xmlData"].xmlContent
XML input file

Specifies the XML document from which to extract data. Enter an expression that returns the path of the XML file for a valid XML document.

Strip Namespace in XML Structure

CA Process Automation provides an option to strip XML namespaces from a response so that a user can provide simpler XPath expressions to look for a value of specific element. This option is available in all the SOAP operators.

The following javascript functions are provided:

Note: The default value of namespaceAware is true. The value of namespaceAware is false if you want stripping of Namespace in XML Structure (and true otherwise).

Process.x="<getMatchingEventsResponse xmlns='http://www.ca.com/itpam'><events> <event ><eventName>test</eventName></event></events></getMatchingEventsResponse>";
Process.s=applyXPath(Process.x,"//eventName",true);
Process.aa1=applyXPathToUrl("file:C:/test.xml","//message",true);
Process.aa2=applyXPathToUrl("file:C:/test.xml","//message",false);
Process.s1=applyXPath(Process.x,"//eventName",false);
Process.s2=applyXPath(Process.x,"//eventName");
Additional extracted data

Specifies XPath expressions to extract data from the XML document. For each expression specified here, specify a dataset variable to which to store the extracted data and a data type.

Use the Add, Edit, and Delete buttons to add, edit, or delete expressions from the list box. The Add and Edit buttons open the Additional Extracted Data dialog.

Specify values for the following options:

Xpath expression

Specifies the XPath expression selected under Additional extracted data.

Dataset variable

Specifies the name of an operator dataset variable in which to save values extracted based on the selected XPath expression.

Type

Specifies the type of element being extracted from the response. Select one of the following currently supported types:

  • Integer
  • Integer Array
  • String
  • String Array
  • XML Fragment
  • XML Fragment Array