• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling a soap web service over ssl or tls  RSS feed

 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello All,

I have created a web service client using wsimport. I am wondering how to call the web service over SSL or TLS.

Here is a code snippet. How can I make this web service call over SSL? I will have my certificate in KeyStore and the web service's certificate in TrustStore. I can write the code to access these certs, etc. But how do I apply them to the web service call? Many thanks for your time and help.



 
Tim Moores
Saloon Keeper
Posts: 3959
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the server is set up for HTTPS, just using an HTTPS URL should do the trick.
 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello All,

In addition to using https (instead of http), I believe these system properties must be set:

javax.net.ssl.trustStore
javax.net.ssl.keyStore
javax.net.ssl.trustStorePassword
javax.net.ssl.keyStorePassword

Thanks.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!