我试图通过eclipse中的java程序连接到wsdl生成的客户端的Web服务.我通过代理服务器传递我的请求.但似乎请求没有通过.相同的代理设置在SoapUI上正常工作.请在下面找到我设置的系统属性.
Properties props= new Properties(System.getProperties());
props.put("http.proxySet", "true");
props.put("http.proxyHost", "10.x.x.x");
props.put("http.proxyPort", "80");
props.put("http.proxyUser","domainName\\xxx");
props.put("http.proxyPassword","xxx");
Properties newprops = new Properties(props);
Run Code Online (Sandbox Code Playgroud)
Java程序抛出一个异常 java.net.UnknownHostException:
我错过了什么?