Hi,

Is CXF trying to cache the Authorization objects somewhere? I have been trying 
NTLM authentication with CXF, it works fine for the first invocation if I 
provide wrong credentials, throws a 401 but the scenario changes after a 
successful invoke. No matter how many times I change the user name or password 
or even switch the authentication scheme specified to Basic, it doesn't work.

And the number of retries that CXF using is high, I believe it's sending more 
than 10 requests when I observed in TCPMon.

The service im using is plain NTLM protected.
The code I'm using on the client side is

conduit.getAuthorization().setAuthorizationType(NTLM);
                           
conduit.getAuthorization().setUserName(authDomain+"\\"+authUserName);
                           conduit.getAuthorization().setPassword(authPassword);
                     }
                     HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
                     httpClientPolicy.setConnectionTimeout(36000);
                     httpClientPolicy.setAllowChunking(false);
                     conduit.setClient(httpClientPolicy);
                     httpClientPolicy = null;

Thanks,
Jay

Reply via email to