How to Use Semantic Validation

You can specify Schematron files for validating an inbound message and its various parts. Schematron version 1.5 is the supported version.

Perform the following steps for specifying a Schematron schema to validate an inbound message and its various parts.

To use semantic validation:

  1. To the right of the Validate Semantic field, click the Select Validation File icon.

    The Validations dialog is displayed.

  2. Click Add.

    The Add Validation dialog is displayed.

  3. From the Part list, select a message part.
  4. To the right of the File field, click Search.

    The SOA Resource Browser dialog is displayed.

  5. Select a Schematron file and click OK.

    Note:

    • Schematron files usually have a .sch extension.

    • No error message or warning is displayed if the selected Schematron file is empty.

    The Add Validation dialog is updated, as shown in Figure 20-35.

    Figure 20-35 Add Validation Dialog

    Description of Figure 20-35 follows
    Description of "Figure 20-35 Add Validation Dialog"
  6. Click OK.

    The Validation dialog is updated, as shown in Figure 20-36.

  7. Click Add to specify a Schematron file for another message part or click OK.

    For more information about building a Schematron schema, see the resources available at

    http://www.schematron.com

    Note:

    In semantic validation, if you check for the length of each element name, then the element name may change for a different set of inputs. This happens when there are white spaces between nodes because the parser treats the white spaces as test nodes.