Hello,

I'm trying to configure CXF client to access a server via SOCKS5 proxy
server with this code:
...

                Client client = ClientProxy.getClient(service);
                HTTPConduit http = (HTTPConduit) client.getConduit();
                HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
                httpClientPolicy.setProxyServer(host);
                httpClientPolicy.setProxyServerPort(port);
                httpClientPolicy.setProxyServerType(ProxyServerType.SOCKS));
                ProxyAuthorizationPolicy policy = new
ProxyAuthorizationPolicy();
                policy.setUserName(user);
                policy.setPassword(pass);
                http.setProxyAuthorization(policy);
                http.setClient(httpClientPolicy);
...

But it does not work for me. Do I have to configure it in another way?

Thanks.


Best regards,
Dmytro Pishchukhin

Reply via email to