How do you add a Soap Header defined in a wsdl to a web service client in CXF?

后端 未结 4 1789
自闭症患者
自闭症患者 2020-12-11 10:55

I have a wsdl that defines a soap header that needs to be passed when calling the web service.

The sample SOAP Header is:


   &         


        
4条回答
  •  一生所求
    2020-12-11 11:42

    While generating the proxy class using Apache CXF using adding the extendedSoapHeaders with true will generate the PortType Class with the Request and Header argument.

                  
    ${project.basedir}/src/main/resources/wsdl/sample.wsdl
     
    true
    
    

提交回复
热议问题