首页 > 代码库 > 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
org.apache.cxf.common.i18n.UncheckedException: No operation was found with the name {http://impl.service.xq.com/}sayHi.
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:347)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:341)
at com.xq.test.Test.main(Test.java:12)
Exception in thread "main" java.lang.NullPointerException
at com.xq.test.Test.main(Test.java:17)
将@webservice的targetNamespace改成"http://service.xq.com/",也就是发布的接口的包名,实在不知道就直接进入http://localhost:8080/cxftest/ws/helloService?wsdl,查看wsdl:definitions标签的xmlns:ns1="http://service.xq.com/",这也就是targetNamespace的值。
No operation was found with the name {http://impl.service.xq.com/}sayHi
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。