使用CXF发布的WebService报错:org.apache.cxf.interceptor.Fault: The given SOAPAction does not match an operation

场景:JAVA语言使用CXF搭建WebService发布报错

错误信息:org.apache.cxf.interceptor.Fault: The given SOAPAction does not match an operation

原因:经查询是因为soapAction缺少值造成的

如果不是cxf编写的客户端调用则会产生这个问题,cxf客户端不会出现该问题,可能是其他客户端需要用这个属性来查找对应的操作

解决:使用@WebMethod()

重新编译部署后

问题解决。

原文地址:https://www.cnblogs.com/goldenVip/p/7411264.html