繁体   English   中英

从Axis2 Web Service客户端通过代理服务器调用Web Service时如何设置代理设置?

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM