标签:
打开命令行,输入命令:
wsimport -keep -p com.demo.client http://192.168.0.27/rm/ws/doctorOnlineStateImpl?wsdl
新建调用类,TestService.java
public class TestService{ public static void main(String[] args) { PasswordServiceService serviceFactory = new PasswordServiceService(); PasswordServiceDelegate service = serviceFactory.getPasswordServicePort(); try { System.out.println(service.getUserPwd("000000","18979176265")); } catch (Exception ex) { System.out.println(ex.getMessage()); } } }
标签:
原文地址:http://my.oschina.net/OkSerIous/blog/503742