基于 SSL 的 Axis 调用,sslaxis调用,System.setPr
分享于 点击 48751 次 点评:249
基于 SSL 的 Axis 调用,sslaxis调用,System.setPr
System.setProperty("javax.net.debug", "ssl");System.setProperty("javax.net.ssl.trustStore", RUTA_TRUSTSTORE);System.setProperty("javax.net.ssl.trustStorePassword", PASS_TRUSTSTORE);System.setProperty("javax.net.ssl.keyStoreType", KEYSTORE_TYPE);org.apache.axis.client.Service service = new Service();org.apache.axis.client.Call call = (Call) service.createCall();call.setTargetEndpointAddress(new java.net.URL(ENDPOINT));call.setOperationName(OPERATION_NAME);String ret = (String) call.invoke(new Object[] { PARAMETER });//该片段来自于http://byrx.net
用户点评