Adding a required elements filter

How to create a required elements filter that checks the document for the presence of required elements in the SOAP header.

About this task

A required elements filter uses the store:///required-elements-filter.xsl stylesheet.

Procedure

  1. Drag the Filter icon to the configuration path.
  2. Double-click the Filter icon.
  3. In the Input field, specify the context of the message to process.
  4. Click the Advanced tab.
  5. From the Filter method list, select Required elements filter.
  6. Set the Asynchronous property to indicate whether to process asynchronously. When enabled, the action does not need to complete before the rule starts processing its next action.
  7. In the XPath expression field, specify the XPath expression.
    Click XPath tool for assistance in constructing the expression.
  8. Optional: Select Enable GatewayScript debug from the actions list to debug a GatewayScript program. The program can be called from a gatewayscript element or a gatewayscript() function in the stylesheet that you specify in the Transform file field.
  9. In the Output field, specify the context of the message after processing.
  10. Click Done.

What to do next

If this action is the last one for the rule, click Apply policy. Otherwise, drag another icon to the configuration path.