I would like to turn off schema validation for JAXB-bound messages. I am dealing with the client-side CXF code (WSDL first generation). I have tried using
Or from the code as follows:
Client client = ClientProxy.getClient(XYZSOAPEndPoint);
HTTPConduit http = (HTTPConduit) client.getConduit();
HTTPClientPolicy policy = new HTTPClientPolicy();
policy.setAllowChunking(false);
http.setClient(policy);
((BindingProvider)XYZSOAPEndPoint).getRequestContext().put("schema-validation-enabled",true);