THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Make sure you are using the Woodstox 4.x Stax parser and not a 3.x or other parser. By default, CXF 2.3 ships with an appropriate version of Woodstox.
- If not using the CXF bundle jar, (example, if using maven), you'll need to add the cxf-wstx-msv-validation-2.3.0.jar to the classpath
- If not using maven or similar to obtain the cxf-wstx-msv-validation jar, you'll also need to add the msv validation jars as CXF does not ship them by default. You will need:
Code Block isorelax-20030108.jar msv-core-2009.1.jar relaxngDatatype-20020414.jar xercesImpl-2.9.1.jar xml-resolver-1.2.jar xsdlib-2009.1.jar
- If not using a default bus (such as configuring your own spring context), you'll need to add:
to load the validator utilities that Aegis will use.Code Block xml xml <import resource="classpath:META-INF/cxf/cxf-extension-wstx-msv-validation.xml" />
- Turn on schema validation like you would for JAXB by using the @SchemaValidation annotation or setting the "schema-validation-enabled" property on the endpoint to "true".
...