码迷,mamicode.com
首页 > Web开发 > 详细

No operation was found with the name {http://impl.service.xq.com/}sayHi

时间:2014-10-27 12:32:12      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:http   io   os   ar   java   sp   on   html   bs   

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

标签:http   io   os   ar   java   sp   on   html   bs   

原文地址:http://www.cnblogs.com/xq357100870/p/4053776.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!