title: Axis HTTP Vs Axis HTTPS Proxy Settings
body: <p>My Java application deployed on Weblogic Cluster invokes two Webservices  which are as follow.</p>
  
  <p>• It sents SOAP Client request to External Application which is on internet) over HTTPS.(Java Classes created through Axis 1.4)</p>
  
  <p>• Thereafter It sents SOAP Client request to internal Application(present on the other node which is connected to my LAN) over HTTP.(Java Classes created through JAX-WS:Jdeveloper Wizard)</p>
  
  <p>In order to reach the 1st WS, I have to set the https proxy settings for the web service client using the following code:</p>
  
  <pre><code>System.setProperty("https.proxyHost", myProxyIP);  
  System.setProperty("https.proxyPort", myProxyPort);  
  </code></pre>
  
  <p>Whereas the 2nd Web services doesn't need this proxy setting because they're already reachable on the network.</p>
  
  <p>My problem is as follows:</p>
  
  <p>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  </p>
  
  <pre><code> System.setProperty("http.proxySet", "false");  
      System.getProperties().remove("http.proxyHost");  
      System.getProperties().remove("http.proxyPort");  
      AxisProperties.setProperty("http.proxyHost", null);  
      AxisProperties.setProperty("http.proxyPort", null);
  </code></pre>
  
  <p>I read somwhere to use  nonProxyHosts.But I am confused if  should i write</p>
  
  <pre><code>System.setProperty("https.nonProxyHosts","secws.secondwsint.com");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>System.setProperty("http.nonProxyHosts","secws.secondwsint.com");
  </code></pre>
  
  <p>http ot https, since the one that need to be bypassed is HTTP and the one we are setting proxy is HTTPS.</p>
  
  <p>I also read in one of blog:</p>
  
  <pre><code>AxisProperties.setProperty("https.proxyHost", "bla1.bla1"); 
  AxisProperties.setProperty("https.proxyPort", "8080"); 
  AxisProperties.setProperty("https.nonProxyHosts", "secws.secondwsint.com"); 
  </code></pre>
  
  <p>but again confued wheather to use https.nonProxyHosts or http.nonProxyHosts </p>
  
  <p>Which one would be advisable to use in my java program <code>System.setProperty</code> or <code>AxisProperties.setProperty</code> and importantly should i use http ot https for writing that codeline
  Also, Is there any other alternative?</p>