cxf调用WebService时出现No operation was found with the name {http://impl.server.test.com/}helloWorld
2017-09-10 17:33
1086 查看
cxf调用WebService时出现No operation was found with the name {http://impl.server.test.com/}helloWorld错误。
下面提供2中解决方法
一种是在服务端指定命名空间,即在服务端接口的实现类添加targetNamespace = “http://server.test.com/”;注意这里是接口的倒序,而不是实现类的倒序
另外一种方法是在客户端指定命名空间(我这里用的是JaxWsDynamicClientFactory方式)
QName opName = new QName("http://server.test.com/", "checkValueRange");
Object[] result = client.invoke("opName , 1,2);
不管是那种方式都不要忘记地址最后面的一个斜杠
下面提供2中解决方法
一种是在服务端指定命名空间,即在服务端接口的实现类添加targetNamespace = “http://server.test.com/”;注意这里是接口的倒序,而不是实现类的倒序
另外一种方法是在客户端指定命名空间(我这里用的是JaxWsDynamicClientFactory方式)
QName opName = new QName("http://server.test.com/", "checkValueRange");
Object[] result = client.invoke("opName , 1,2);
不管是那种方式都不要忘记地址最后面的一个斜杠
相关文章推荐
- No operation was found with the name {http://impl.service.xq.com/}sayHi
- No operation was found with the name {http://impl.service.xq.com/}sayHi
- CXF异常:No operation was found with the name
- org.apache.cxf.common.i18n.UncheckedException: No operation was found with the name
- [转] --- Error: “A field or property with the name was not found on the selected data source” get only on server
- 更换免开发证书账号出现的Your build settings specify a provisioning profile with the UUID"",however,no such provisioning profile was found
- SpringMVC整合cxf webservice出现提示No service was found解决办法
- CXF异常 No DestinationFactory was found for the namespace http://schemas.xmlsoap.org
- 错误:A field or property with the name 'XXX' was not found on the selected data source 解决
- 6.项目出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的解决方法
- 问题:Eclipse新建web项目出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build P
- No mapping found for HTTP request with URI in DispatcherServlet with name 'XXX'
- JSP页面顶端出现错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的问题解决
- Your build settings specify a provisioning profile with the UUID, no provisioning profile was found
- Unity与Android交互:使用Unity打包出现了:No resource found that matches the given name“Theme.AppCompat.Light”的错误
- Silverlight调用WebService出现CommunicationException The remote server returned an error: NotFound的一种可能原因
- No mapping found for HTTP request with URI [...] in DispatcherServlet with name '...'
- 关于安卓出现No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
- laravel The requested URL /test was not found on this server.
- Your build settings specify a provisioning profile with the UUID, no such provisioning profile was found的解决方案