org.apache.cxf.interceptor.Fault: The given SOAPAction ... does not match an operation

实现Webservice接口

服务端使用 的是 CXF 实现,客服端使用 axis 实现

使用客户端调取服务端的代码时候报错:org.apache.cxf.interceptor.Fault: The given SOAPAction ... does not match an operation

这是因为使用cxf实现服务端的时候WSDL文件中没有生成SOAPAction

解决办法:注释掉:call.setSOAPActionURI() 这个方法。

发布了102 篇原创文章 · 获赞 49 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/SoWhatWorld/article/details/104877500