java信任一切证书
java
java_shares
log.info("付款加载证书 完成,开始发送 url=" + serverUrl);
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(serverUrl);
AxisProperties.setProperty("axis.socketSecureFactory", "org.apache.axis.components.net.SunFakeTrustSocketFactory");
QName qName = new QName(serverUrl,"IfService");
Object[] objects = new Object[]{ifUser,ifPass,ifCodePay,ifEvent,info};
call.setOperationName(qName);
String returnXML = (String) call.invoke(objects);
log.info("returnXML====="+returnXML);