xfire框架构建webservice应用(通过myeclipse自动生成代码,自动
xfire框架构建webservice应用: 3.修改WebServices/service.xml:配置<beans>下的<serviceClass>接口类为hello.IHelloService,<implementationClass>实现类为hello.HelloService IHelloServiceClient.java中main代码如下: ??? public static void main(String[] args) { ??????? IHelloServiceClient client = new IHelloServiceClient(); ??//create a default service endpoint ??????? IHelloServicePortType service = client.getIHelloServiceHttpPort(); ??//TODO: Add custom client code here ??????? ??//service.yourServiceOperationHere(); ??????? String str=service.hello("aaabbb"); ??System.out.println("test client completed...? /n"+str); ??????? ??System.exit(0); ??? } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |