[prev in list] [next in list] [prev in thread] [next in thread]
List: soap-user
Subject: Re: getting outside the proxy
From: "Scott Nichol" <snicholnews () scottnichol ! com>
Date: 2003-11-12 19:17:35
[Download RAW message or body]
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" <FegenbushScottC@JohnDeere.com>
To: <soap-user@ws.apache.org>
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!!!!
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic