Adding Validate Actions
Use a validate action to validate elements selected by an XPath expression against an XML schema element or a WSDL resource. You can validate global elements only; ALSB does not support validation against local elements.
Before you begin
These instructions assume you are already editing a message flow in the Edit Message Flow page, as explained in
Creating, Editing, and Viewing Message Flows.
To add a Validate action
- Navigate to where you want to add the action, as described in
Adding and Editing Actions in Message Flows.
- Click the appropriate icon, then select Add an Action > Message Processing > Validate.
- Click XPath. to construct an XPath expression that specifies the elements to be validated. See
Creating and Editing Inline XQuery and XPath Expressions. When you are finished constructing the expression in the XPath Expression Editor, click Save. to insert the expression on the Edit Stage Configuration page.
- In the in variable field, enter the name of the variable to hold the element to be validated.
- Click resource, then select WSDL or Schema.
- From the WSDL Browser or XML Schema Browser, do the following:
- Select the WSDL or XML schema
- Select the WSDL or XML schema type or element
- Click Submit.
- To save the result of this validation (a boolean result), select Save result of validation in variable and enter the name of the variable in which you want to save the result.
Alternatively, to raise an error if the element fails validation against the WSDL or XML schema element, select Raise Error on validation failure.
After you are finished
When you complete the configuration of this action, continue by configuring other actions or by saving your configuration, as described in
Adding and Editing Actions in Message Flows.