-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat Fuse
11.3. Add Validation to Your Application
Procedure 11.1. Add Validation to Your Application
- Specify message validation in the descriptor of your SwitchYard application by editing the
switchyard.xml
file using the JBoss Developer Studio SwitchYard Editor.The qualified name of the type being validated is defined along with the validator implementation. This allows validation to be a declarative aspect of a SwitchYard application, as the runtime will automatically register and execute validators in the course of a message exchange.<validates> <validate.xml schemaType="XML_SCHEMA" name="{urn:example}MyBook"> <schemaFiles><entry file="/xsd/orders.xsd"/></schemaFiles> </validate.xml> </validates>