[英]How to set Proxy Settings while invoking Web Service through proxy server from Axis2 Web Service Client?
无法在Axis2 Web服务客户端中设置代理设置。
ServiceClient client = new ServiceClient(); // build your service client here
Options options = new Options();
HttpTransportProperties.ProxyProperties proxyProperties = new HttpTransportProperties.ProxyProperties();
proxyProperties.setDomain("");
proxyProperties.setProxyName("");
proxyProperties.setProxyPort(8000);
proxyProperties.setUserName("");
proxyProperties.setPassWord("");
options.setProperty(HTTPConstants.PROXY, proxyProperties);
client.setOptions(options);
谢谢...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.