org.apache.cxf.interceptor.Fault: The given SOAPAction ... does not match an operation
来源:互联网 发布:有线路由器 知乎 编辑:程序博客网 时间:2024/06/05 18:45
在使用CXF编写web services的服务端时,如果用web services的客户端(不知道实现方式)调用会出现题目所述的错误,但是如果使用CXF的自己编写的客户端来调用同样是CXF编写的服务端,则不会出现任何问题。经过多次试验,发现是由于soapAction惹的祸,关于这个属性究竟有什么作用?看下面的链接
简单点来说,就是使用CXF编写Web services客户端时生成的WSDL文件中没有提供soapAction的值,而客户端调用时则会使用这个属性来查找对应的操作。
错误如下:
CXF生成的WSDL文件如下:
从中可以看出,soapAction 的值是空的,所以才会报上述错误,在网上搜了好久,也没有解决办法,但是同样的问题却有很多,于是自己试了好久,查看jax-ws提供的注解,用了@WebMethod这个注解,才解决了这个问题,具体操作如下:
将该注解标示在Web Services的接口(Java语言中的)中,并提供action属性,里面的值在生成WSDL时会起作用,值得注意的是,如果该注解标示在该接口的实现类的方法中是不起作用的。
@WebMethod(action="http://service.Simulation.tools.com/getPatientInfo")List<PatientInfo> getPatientInfo();之后查看生成的WSDL出现了该值。
相关文章:
- wsdl SOAP Action的真正面貌
- given soap action does not match any operation
1 0
- org.apache.cxf.interceptor.Fault: The given SOAPAction ... does not match an operation
- org.apache.cxf.interceptor.Fault: The given SOAPAction ... does not match an operation
- org.apache.cxf.interceptor.Fault: No such operation
- org.apache.cxf.interceptor.Fault
- org.apache.cxf.interceptor.Fault:Could not send Message
- cxf /webservice出错 org.apache.cxf.interceptor.Fault: No such operation: (HTTP GET PATH_INFO: /CxfDem
- org.apache.cxf.interceptor.Fault: Unmarshalling Error:
- WebService报错:org.apache.cxf.interceptor.Fault: No such operation
- WebService放发布服务之后访问报错org.apache.cxf.interceptor.Fault: No such operation:
- org.apache.cxf.interceptor.Fault: Could not send Message.(CXF客户端访问服务器端出错)
- org.apache.cxf.interceptor.Fault: Could not initialize class org.springframework.jdbc.core.Statement
- java cxf org.apache.cxf.interceptor.Fault: Unmarshalling Error: null
- java cxf org.apache.cxf.interceptor.Fault: Unmarshalling Error: null
- WebService报org.apache.cxf.interceptor.Fault: Could not send Message 错误
- WebService报org.apache.cxf.interceptor.Fault: Could not send Message 错误
- org.apache.cxf.interceptor.Fault: Marshalling Error: XXXX is not known to this context
- given soap action does not match any operation
- cxf未开启服务端时产生的报错org.apache.cxf.interceptor.Fault: Could not send Message.
- 三方库
- sql字符串拼接
- Android之NFC
- 13.Quartz2D
- React-开发工具
- org.apache.cxf.interceptor.Fault: The given SOAPAction ... does not match an operation
- 解析json字符串,并且获取其中某个key的值
- AAPT err(Facade for ): libpng error: Not a PNG file
- hdu3336(kmp+dp)
- 协方差的意义和计算公式
- struct option 的使用
- 用于操作基本类型数据的流对象
- model 中的selectedRows()函数
- sqlite系列(2)使用FMDB保存数据swift