Axis call over SSL


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. System.setProperty("javax.net.debug", "ssl");
  2. System.setProperty("javax.net.ssl.trustStore", RUTA_TRUSTSTORE);
  3. System.setProperty("javax.net.ssl.trustStorePassword", PASS_TRUSTSTORE);
  4. System.setProperty("javax.net.ssl.keyStoreType", KEYSTORE_TYPE);
  5.  
  6. org.apache.axis.client.Service service = new Service();
  7. org.apache.axis.client.Call call = (Call) service.createCall();
  8. call.setTargetEndpointAddress(new java.net.URL(ENDPOINT));
  9. call.setOperationName(OPERATION_NAME);
  10. String ret = (String) call.invoke(new Object[] { PARAMETER });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.