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

后端 未结 4 1649
后悔当初
后悔当初 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:04

    @SchemaValidation(type = SchemaValidation.SchemaValidationType.NONE)
    public EndpointImpl endpoint(Bus bus, DirectConnectService accountServiceEndpoint) {
      }
    

    put this validation in your endpoint configuration class

提交回复
热议问题