Consuming Webservice over HTTPS
We have a webservice that we are consuming from our end.
Webservice can run both on HTTP and HTTPS protocol. With HTTP no issues, but how to access with HTTPS.
Can anybody tell me the java code for the same. I need to do this at the application level.
Keystores and truststores will be required but how to use in java code and and trust them.
Any help will be appreciated.