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>    
        
    
    
    Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top