CXF 2.2.12: How to turn off schema validation on the client side

后端 未结 4 1650
后悔当初
后悔当初 2021-01-04 20:46

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



        
4条回答
  •  一整个雨季
    2021-01-04 21:13

    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);
    

提交回复
热议问题