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

来源:互联网 发布:马云淘宝是日本的 编辑:程序博客网 时间:2024/04/24 11:17

异常信息如下:

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,异常便解决了。

原创粉丝点击