webservice客户端出错java.lang.IllegalStateException:Service class is not an interface
我通过wsdl生成客户端代码,然后在eclipse运行成功人,但是单独部署,通过运行脚本调用,不依赖eclipse就报
java.lang.IllegalStateException: Service class is not an interface. Please use an interface specify or specify one via a @WebService annotation.
at org.codehaus.xfire.client.XFireProxyFactory.create(XFireProxyFactory.java:109)
at org.codehaus.xfire.client.XFireProxyFactory.create(XFireProxyFactory.java:146)
经查代码发现create出错:
private static XFireProxyFactory proxyFactory = new XFireProxyFactory();
proxyFactory.create((endpoint).getBinding(), (endpoint).getUrl());
请问是什么原因啊?