Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis and custom socketFactory  RSS feed

 
Niral Trivedi
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am now successfully able to use Axis with my own SocketFactory class to make external SOAP webservice call. But having a little problem.

I am currently making 3 SOAP call to 3 different URL and for I have stored keystore for all 3 websites in same file. This runs fine but I was wondering whether it is possible to have 3 different keystore files instead of one. But I am not sure how will I get it working?

I tried loading 3 different keystore files one by one in my custom SocketFactory class but only the last one gets loaded. First 2 call give 'SSLHandshakeError : Unknown CA'.

Can somebody give any idea? If I create 3 separate SocketFactory class one each for one keystore then how can I tell Axis to load which socketFactory for which call?

Thanks in advance
 
Niral Trivedi
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is a hashtable argument to the constructor of custom socketFactory. I believe we can pass the keystore file name/pass using this hashtable. But how can we populate this values in that hashtable?? Any idea?

I have looked through Axis-users mailing list archive and other resources and found that people were having this issue but could not find solution to this.

Please help..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!