Versions Compared

Key

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

...

  1. 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.
  2. 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
  3. 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
    
  4. If not using a default bus (such as configuring your own spring context), you'll need to add:
    Code Block
    xml
    xml
    <import resource="classpath:META-INF/cxf/cxf-extension-wstx-msv-validation.xml" />
    
    to load the validator utilities that Aegis will use.
  5. 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".

...