【发布时间】:2016-07-20 19:28:18
【问题描述】:
我正在为我的网络服务客户端使用以下代码:
HelloService hello = new HelloService();
HelloPortType helloPort = cliente.getHelloPort();
org.apache.cxf.endpoint.Client client = ClientProxy.getClient(helloPort);
HTTPConduit http = (HTTPConduit) client.getConduit();
http.getClient().setProxyServer("proxy");
http.getClient().setProxyServerPort(8080);
http.getProxyAuthorization().setUserName("user proxy");
http.getProxyAuthorization().setPassword("password proxy");
但我的 web 服务的结束 url 是 https url。此代码似乎仅适用于 http url。有没有办法为 cxf 客户端设置 https 代理?
【问题讨论】:
标签: web-services https proxy client cxf