Specify XPaths in Assertions
Some assertions require you to specify an XPath on which to perform an operation. For example, you may be evaluating a request XPath, encrypting an element, or signing a non-SOAP element. This graphic shows an example of the interface used to select or modify an XPath.
gateway83
Some assertions require you to specify an XPath on which to perform an operation. For example, you may be evaluating a request XPath, encrypting an element, or signing a non-SOAP element. This graphic shows an example of the interface used to select or modify an XPath.

This interface contains the following elements. Every assertion with an XPath selection task contains these elements; some assertion contain additional elements specific to that assertion.


While context variables within the expression are supported by all XPath assertions, fully-dynamic XPath expressions are only available in the Evaluate Request XPath and Evaluate Response XPath assertions.





To select an XPath
:- In section
, select the operation containing the element you want to use for the task (evaluating, encrypting, etc.) A sample message is displayed in the code window
.
- Examine the sample message generated by the Policy Manager in
to see if it meets your needs. If not, use the
Sample Messagessection into create your own message. Messages generated by the system are limited to elements defined in the WSDL document.
- In the code box
, click a target element to build your XPath expression. The XPath for this element is displayed in the
XPathfield.
The Policy Manager only builds an XPath expression to an element. For more complex expressions, you must edit the XPath manually in.
- Edit theXPathin
if necessary. For greater flexibility, you may reference context variables within the expression. For more information, see XPath Context Variables.
- Edit the namespace map in
if necessary.