The exception "Error opening socket: java.net.UnknownHostException" means pretty much 
what it says: the code could not resolve an IP address for the host you specified in 
setProxyHost.  Are you certain you are setting the correct value?

Also, note that the setUserName and setPassword methods set the credentials for HTTP 
Basic Authentication, not for proxy authentication.  If you want to authenticate with 
the proxy, you should call setProxyUserName and setProxyPassword.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Fegenbush Scott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 12, 2003 9:27 AM
Subject: getting outside the proxy


Hello,
Can someone PLEASE give me some advice / examples of how to get through our corporate 
proxy server to an outside URL?  I have tried the following code without any luck:

SOAPHTTPConnection soapHTTPConnection = new SOAPHTTPConnection();
soapHTTPConnection.setProxyHost("proxyserver.somedomain.com");
soapHTTPConnection.setProxyPort(portNumber);
soapHTTPConnection.setUserName("userid");
soapHTTPConnection.setPassword("password");

with I receive the following error everytime:
[SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: 
java.net.UnknownHostException: .....
..................
at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:354)



Any help would be GREATLY apprecaited!!!!




Reply via email to