您的位置:首页 > 编程语言 > Java开发

Exception in thread "main" javax.xml.ws.WebServiceException: Could not find wsdl:binding operation i

2013-01-31 15:38 721 查看
异常信息如下:

Exception in thread "main" javax.xml.ws.WebServiceException: Could not find wsdl:binding operation info for web method getListPnameByuid.

at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:113)

at $Proxy17.getListPnameByuid(Unknown Source)

at cn.navidog.front.users.testwebservice.main(testwebservice.java:21)

原因是因为客户端的service中的方法没有跟服务端绑定,只需要将客户端的Service接口加上注解@WebService,异常便解决了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐