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

时间:2023-12-03 17:53:08

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

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

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

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

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

解决:使用@WebMethod()

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

重新编译部署后

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

问题解决。