CXF无法生成SOAP 1.2消息

我知道在SO中也曾问过类似的问题,但是那里给出的解决方案都不适合我。

我有一个符合SOAP 1.2的Web服务。我需要调用该服务。

我正在使用cxf-code-gen插件maven生成客户端存根,我尝试使用所生成的类来调用服务,但会引发异常。它给出以下错误:

org.apache.cxf.binding.soap.SoapFault: A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint.
            at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:180) ~[cxf-rt-bindings-soap-3.2.6.jar:3.2.6]

可以帮忙吗?

vman20082009 回答:CXF无法生成SOAP 1.2消息

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3146041.html

大家都在问