cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Al Grant <bigal...@gmail.com>
Subject Re: Client not sending proxy credentials
Date Sun, 11 Feb 2018 23:51:58 GMT
Hmm, its still not sending creds.

Looking at a few examples online I think I am missing something.

Anyone able to clarify what I am missing?

        HTTPConduit http = (HTTPConduit) client.getConduit();

        if (PROXY) {
            HTTPClientPolicy policy = http.getClient();
            policy.setProxyServer("webproxy.test.au");
            policy.setProxyServerPort(8080);
            policy.setReceiveTimeout(600000);
            ProxyAuthorizationPolicy auth = new ProxyAuthorizationPolicy();
            auth.setUserName(pdf.get("username"));
            auth.setPassword(pdf.get("password"));
            //http.getProxyAuthorization().setUserName(pdf.get("username"));
            //http.getProxyAuthorization().setPassword(pdf.get("password"));
            http.setAuthorization(auth);
            http.setClient(policy);
        }

        http.setTlsClientParameters(tlsParams);

        // SEND DATA
        response = isalesService.setSale(request);


Cheers

AG





--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Mime
View raw message