Posted By

alejandrosuch on 03/31/10


Tagged

java ssl axis


Versions (?)

Axis call over SSL


 / Published in: Java
 

  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  

You need to login to post a comment.