AXIS 调用 webservice服务时传递 服务器验证需要的用户名密码

System.setProperty("javax.net.ssl.trustStore", T.class.getResource(".").getPath()+"keystore/wanhua.truststore");
System.setProperty("javax.net.ssl.trustStorePassword", "password");
String address = "地址";
String username = "username";
String password = "password ";
SI_381_GPS_OnlinetrackFrequency_OutServiceLocator lso = new SI_381_GPS_OnlinetrackFrequency_OutServiceLocator();
L3_LMS_IF12_WS_01Response lliw = lso.getHTTPS_Port(address,username,password).SI_381_GPS_OnlinetrackFrequency(new L3_LMS_IF12_WS_01());
System.out.println(lliw.getL3_LMS_IF12_WS_01Return().getValue());

上一篇:问题:C#调webservice超时;结果:C#调用webservice服务超时


下一篇:Wechat4j之Hello world——使用wechat4j快速开发java版微信公众号