异常信息如下:
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,异常便解决了。