Axis 客户端调用
生产客户端文件:
1:Axia官网下载axis-bin-1_4.zip,解压;
2:命令行 进入解压后的文件夹
3:执行命令
D:\Axis\axis-1_4> Java -Djava.ext.dirs=lib org.apache.axis.wsdl.WSDL2Java –p com
.web.Interface http://127.0.0.1:8080/HZWebService/services/hello?wsdl
-p:后面跟是的包名;可自定义
最后的发布的service地址;
调用代码:
在当前目录下会生成包名的文件夹,把所有生产的文件拷入项目;
EmployeeManageServiceLocator svc=new EmployeeManageServiceLocator();
EmployeeManage service=svc.getEmployeeService();
通过service就可以调用接口的方法了;