CXF How to set SoapVersion on CXF port without Spring

后端 未结 5 1718
遇见更好的自我
遇见更好的自我 2020-12-30 10:14

I am currently working on a Web Service client using CXF without Spring configuration files.

It works pretty well but I cannot figure out how to set the binding Soap

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-30 10:22

    As suggested by Donal Fellows I answer to my own question ;)

    Actually the issue was linked to the Soap version the server can handle. On the client side I do not need to specify that I want to use Soap 1.2, it seems it's sufficient to have the PortType in the WSDL file configured to Soap 1.2. But on the server side I need to explicitly tell which Soap version I want. On the server side I still use the "Spring-mode" for CXF configuration thus I just added the following in the XML configuration file:

    
        
    
    

    That's all folks! Thanks for your time and help!

    EDIT --------------------------------

    Actually this solution does not work now that we contact a server we do not manage.... We are still stuck with our problem here....

提交回复
热议问题