Register / Login
Axis2 client behind a Proxy
posted 10 years ago
Using Axis 1.x if your client was behind a proxy all you had to do was set the system properties with -Dhttp.proxyHost=myproxy.mycompany.com -http.proxyPort=80 and everything worked correctly.
Under Axis 2.x this doesn't appear to work anymore. I have temporarily kludged it by adding the following code to the generated stub, but there must be a better way. Any ideas?
Options opts = _serviceClient.getOptions(); HttpTransportProperties prop = new HttpTransportProperties(); ProxyProperties proxyProperties = prop.new ProxyProperties(); proxyProperties.setProxyName("myproxy.mycompany.com"); proxyProperties.setProxyPort(80); opts.setProperty(HTTPConstants.PROXY, proxyProperties);
[ August 29, 2006: Message edited by: Todd Johnson ]
unable to run tcpmon
Unable to test webservice using a client
java client call to https web service behind proxy
Read Client IP Address behind Proxy