I use JBoss 7.1 final and would like JBoss to validate the payload.
I've created an xsd-schema, a wsdl file and a server implementation.
The service is annotaded with @SchemaValidation and executes fine but does not do any validation.
Do I have to do anything more than add the annotation to force JBoss to validate the payload?
Be sure to use the @org.apache.cxf.annotations.SchemaValidation annotation and not the jbossws-native one, as JBoss 7 comes with JBossWS-CXF stack in it by default. Also see http://cxf.apache.org/faq.html#FAQ-HowcanIturnonschemavalidationforjaxwsendpoint%3F
You were right, that I had the wrong annotaition. I have now changed it to org.apache.cxf.annotations.SchemaValidation,
and added @SchemaValidation(enabled=true) but the payload is still not validated.
Do I have to do anything more? You added a link but I don't know how to apply it if needed.
|Retrieving data ...|