문제

I am working on a bank network which is a closed network. We have deployed web service client(create using apache cxf). The bank uses proxy to connect to outside network. So how would i tell the web service java client to use the network proxy which bank has set. Thanks in advance. A more clear solution would be of great help.

도움이 되었습니까?

해결책

configure the proxy server on the HTTPClientPolicy object and set it on the HttpConduit object retrieved from proxy object or client.

HTTPClientPolicy policy = new HTTPClientPolicy();
policy.setProxyServer("<<proxyServer>>");
policy.setProxyServerPort("<<proxyPort>>");
httpConduit.setClient(policy);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top