Are you trying to disable the validation of SOAP payloads ?
The below code uses CXF JAX-RS specific classes...
Cheers, Sergey
<endpoint-config name="myconfig">
<property name="set-jaxb-validation-event-handler"
value="false" />
</endpoint-config>
</subsystem>
I've tried programmatically
@Inject
public CxfConfig jaxWsConfig(OneAXmlManager headerManager, Bus bus) {
bus.setExtension(headerManager, HeaderManager.class);
ServerProviderFactory providerFactory =
ServerProviderFactory.createInstance(bus);
providerFactory.setUserProviders(Arrays.asList(new
JacksonJsonProvider()));
bus.setProperty("jaxrs.shared.server.factory", providerFactory);
bus.setProperty("set-jaxb-validation-event-handler", false);
bus.setProperty(Message.SCHEMA_VALIDATION_ENABLED,Boolean.FALSE);
return this;
}
But everything I've tried does not get by the code snippet below in
DataReaderImpl. The setEventHander is set to true, and I have not found out
a way to set setEventHander to false.
During schema validation ReadHeaderInterceptor calls the
DataReaderImpl.createUnmarshaller
if (setEventHandler) {
um.setEventHandler(new
WSUIDValidationHandler(veventHandler));
}
--
View this message in context:
http://cxf.547215.n5.nabble.com/Not-able-to-disable-schema-validation-tp5761403.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/