Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The XMLVerification allows user users to validate content present in the message body or application context or both, against configured XSD(s) or DTD(s). The component has two output ports OUT_PORT and FAILED_PORT. If the validation is successful, then the message "without any changes" is sent out on to OUT_PORT, else the message is sent on to FAILED_PORT with two additional properties ERROR_MESSAGE and STACKTRACE containing the error message indicating the problem and the source of the problem.

Content present in the message body or application context or both is considered valid only if

  • The the content has to be validated and is an XML instance.
  • The the structure of XML instance is valid according to corresponding XSD/DTD configured.
  • The the qualified root element of XML instance matches the configured qualified root element.

Configuration

...

The configuration for XML Verification is defined in the XMLVerification Configuration Property Sheet (CPS) as shown in Figure 1 with the Expert Properties viewthe figure below.

Component Configuration


Figure 1: Configuration of XML Verification

...

This property determines the source(s) of content that should be validated

  • Body - Only content of ofthe message body has to be validated with XSD/DTD defined against property Body. When this option is selected, the property "Body" is visible and property Context is hidden.
  • Context - Only content of application context has to be validated with XSD/DTD defined against property Context. When this option is selected, property "Contex"t is visible and property Body is hidden.
  • Context-Body - Contents of both message body and application context have to be validated with XSD/DTD defined against properties Body and Context respectively. When this option is selected, both properties Context and Body are visible.

...

This property defines the XSD/DTD with which content of the message body has to be validated. Click the ellipses button to open the editor to provide XSD/DTD as shown in the figure below.

...

Enable the Show Expert Properties checkbox to make the properties visible.

Warning

These Expert properties are meant for advanced users; please use with caution.


Figure 4: XMLVerification CPS with Expert Properties enabled and highlighted

...

Post Processing XSL configuration can be used to transform the response message before sending it to the output port.

...

Configure the XMLVerification component as described in the Configuration section for XSD Structure Body and use feeder and display components to send sample input and to check the response respectively. If the Sample Input verification is successful, then the input message is sent to Display_Out and if the verification fails, the input message is sent to Display_False.

...

Adaptavist ThemeBuilder EngineAtlassian Confluence