wsimport doesnt generate code related to soap headers

前端 未结 2 1630
谎友^
谎友^ 2020-12-28 16:20

I\'m generating client java code from a wsdl using \'wsimport\'. The wsdl has soap:header in the operation definitions like this



        
2条回答
  •  旧巷少年郎
    2020-12-28 17:01

    -exsh (true/false)

    Enables or disables processing of implicit SOAP headers (i.e. SOAP headers defined in the wsdl:binding but not wsdl:portType section.) Processing the SOAP headers requires the SOAP binding jars available on the classpath which was not the default in CXF 2.4.x and older. You may need to add a dependency to cxf-rt-binding-soap for this flag to work. Default is false.

提交回复
热议问题