File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Axis and SSL connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis and SSL connection" Watch "Axis and SSL connection" New topic

Axis and SSL connection

Niral Trivedi
Ranch Hand

Joined: Nov 26, 2001
Posts: 46
Hi All,

Can somebody please point me to any resources where I can find how can I write Web Service client using Apache Axis which connects to https URL?

I have found some which are doing and and then using SOAPHttpConnection and Call Interface to make SOAP call. But I can not use System.setProperty as our system environment does not allow that. So, what else can I use? I found examples to use KeyStore and KeyManagerFactory classes but I am not sure how can I use them with Axis?

Any help will be appreciated.

Thanks in advance
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Check the thread "Axis client handler" from last week. I posted a link to a relevant article about Axis and SSL there.
Niral Trivedi
Ranch Hand

Joined: Nov 26, 2001
Posts: 46
Hi Ulf,

Thanks for such a quick response. I checked the article in that thread. But isn't it also setting System properties for truststore file location and password? Basically I can not do System.setProperty.

I have found somewhere how to read truststore using KeyStore and KeyManagerFactory classes from jsse package. But I do not know how can I use them with Axis. So, can you point me to something in that direction?

I have found this link : but this is for apache SOAP and that did not work for me for Apache SOAP so I am not sure whether I can try that with Axis as well or not.

I agree. Here's the link:
subject: Axis and SSL connection
It's not a secret anymore!