Description
When setting proxy server as VM parameters http.proxyHost, http.proxyPort,
proxySet, http.nonProxyHosts. HttpConduit doesn't read those properties and set proxy server.
I have to manually set these after creating the client.
if("true".equalsIgnoreCase(System.getProperty("proxySet")))
{ Client client = ClientProxy.getClient(service); HTTPConduit http = (HTTPConduit) client.getConduit(); HTTPClientPolicy httpClientPolicy = http.getClient(); httpClientPolicy.setProxyServer(System.getProperty("http.proxyHost")); httpClientPolicy.setProxyServerPort(Integer.parseInt(System.getProperty("http.proxyPort"))); }