1.了解url : http://localhost:8080/test/services/user?wsdl;
2.新建web service 项目 Test,启动接口;
3.在项目Test上新建一个 web service client ,选择JAX_WS;
4.Test项目会自动生成关联代码,新建一个java类,main方法
public static void main(String[] args) { System.out.println("123"); ServiceCommandService sc = new ServiceCommandService(); IServiceCommand is = sc.getServiceCommandPort(); String s = is.queryInstanceById(); System.out.println(s); String s2 = is.queryInstanceList(); System.out.println(s2); }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。