My Java application deployed on Weblogic Cluster invokes two Webservices(Java Classes created through Axis 1.4) which are as follow.
• It sents SOAP Client request to External Application which is on internet) over HTTPS.
• Thereafter It sents SOAP Client request to internal Application(present on the other node which is connected to my LAN) over HTTP.
In order to reach the 1st WS, I have to set the https proxy settings for the web service client using the following code:
Whereas the 2nd Web services doesn't need this proxy setting because they're already reachable on the network.
My problem is as follows:
If I call the 1st service (the one with the proxy setting), and then call the other , the Axis client tries to call these services with the same proxy setting, even if I remove the proxy setting from the System properties just before I am about to inoke the 2ns WS by writing
I read somwhere to use nonProxyHosts.But I am confused if should i write
http ot https, since the one that need to be bypassed is HTTP and the one we are setting proxy is HTTPS.
I also read in one of post:
but again confued wheather to use https.nonProxyHosts or http.nonProxyHosts
Which one would be advisable to use in my java program or and importantly should i use http or https for writing that codeline Also, Is there any other alternative?