I usually just use the java properties directly :

-DproxySet=true
-DproxyPort=8080
-DproxyHost=myproxy.com

Fegenbush Scott wrote:

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