blob: fa9fde8b6e53a485a564d5e9d1e3ac756bda039a [file] [log] [blame]
h2. servicemix-validation
h3. Overview
The ServiceMix Validation component provides schema validation of documents using JAXP 1.3 and XMLSchema or RelaxNG.
h4. Namespace and xbean.xml
The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/validation/1.0}}. This is an example of an {{xbean.xml}} file with a namespace definition with prefix {{bean}}.
{pygmentize:lang=xml}
<beans xmlns:scripting="http://servicemix.apache.org/validation/1.0">
<!-- add validation:endpoint here -->
</beans>
{pygmentize}
h4. Endpoint types
The servicemix-validation component defines a single endpoint type:
- {{validation:endpoint}} :: Validates the incoming XML message - can be configured to fail the exchange or to send validation errors back to the sender in the message body.
h3. {{validation:endpoint}}
h4. Endpoint properties
{include:jbi/components/_servicemix-validation-endpoint.conf}