生产客户端文件:

1Axia官网下载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就可以调用接口的方法了;

相关文章:

  • 2022-12-23
  • 2021-12-16
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-12-03
  • 2021-11-27
猜你喜欢
  • 2021-10-27
  • 2021-06-21
  • 2022-01-14
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案