Access to multiple webservices over https from the same host
posted 5 years ago
Can someone give me some advice how to properly configure or make a call to multiple webservices over https from the same host?
From webservice providers i get certificates. Then I have imported this certificates into keystore.
For example i have made two jsp or servlets. First servlet call first webservice (over https) and second servlet call second webservice (over https)..
The problem is if I run the first servlet at the first time then the second servlet won't work and viceversa (I get bad certificate exception etc..)
For the webservice communication i use Axis 1.4 library..
My question is how to setup or how to make a call to multiple webservices from the same host over https?
Here is my example for the servlet or JSP (A)
The second servlet code (B)
What I'am doing wrong and how to solve multiple calls from the APP server?