Hi,
Steve answered earlier and worked for me.
Use :
System.getProperties().put( "http.proxyHost", "yourProxyHost" );
System.getProperties().put( "http.proxyPort", "yourProxyPort" );

If your proxy requires authorization, you'll get a 
(407)Proxy authorization required
message from the proxy, but it does mean your SOAP client connects over 
the network. I haven't figured out how to pass the authorization from 
SOAP client to proxy. Would be great if someone could help.

regards,
Selva.
> 
> I'm new to using the Axis-Soap package.  I tried executing the 
> TestClient for the echo service by calling the following URL
> http://nagoya.apache.edu:504 and I get the following exception:
> java.net.UnknownHostException: nagoya.apache.org
> 
> When I deploy the same service in samples on my local tomcat 4, 
> the client works fine.
> So I thought I probably need to set the proxy settings inside the 
> client to get  throught the firewall.
> 
>       System.setProperty("proxySet", "true");
>       System.setProperty("proxyHost", "proxy");
>       System.setProperty("proxyPort", "8080");
> 
> This still does not work... 
> I added a <URL>.openConnection() method in the beginning of the 
> client program. 
> The program connects to the same URL and returns HTTP_OK, but the 
> service still complains about the same
> unknown host exception. Any ideas / suggestions ????
> 
> Jie
> 
> 
> 
> 

**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

Reply via email to