I am trying to connect to a web service with a client generated from wsdl through a java program in eclipse. I am passing my request through a proxy server. But it seems tha
I had the same problem. Just the following code works for me for setting proxy.
System.setProperty("java.net.useSystemProxies", "true");
java -Dhttp.proxyHost=proxyhostURL
-Dhttp.proxyPort=proxyPortNumber
-Dhttp.proxyUser=someUserName
-Dhttp.proxyPassword=somePassword javaClassToRun
http://i4t.org/2007/05/04/java-http-proxy-settings/
if you are connecting webservice using HTTPS then the proxy property to set is
https.proxyHost
https.proxyPort
(http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html)