Hi Oleg,
I found out this was an Axis2 bug. Axis2 sets the credentialProvider, that's
why the "promptForCredential()" didn't return null, and keeps going in a
loop.
Thanks!
Jeff
On 11/1/06, Oleg Kalnichevski <[EMAIL PROTECTED]> wrote:
On Tue, 2006-10-31 at 18:38 -0800, Jeff Ling wrote:
> Hi Oleg,
>
> Here is the cleaned up code:
>
> NTCredentials creds = new NTCredentials(username, password,
> "columbus.corp.goo.com", "ent-sales-d2");
> HttpState httpState = new HttpState();
> HttpClient client = new HttpClient();
>
> httpState.setCredentials(new AuthScope("columbus",
> AuthScope.ANY_REALM, AuthScope.ANY_SCHEME), creds);
> GetMethod get = new GetMethod("
> http://columbus.corp.goo.com/default.aspx");
>
> get.setDoAuthentication(true);
> client.getParams().setAuthenticationPreemptive(false);
> client.setState(httpState);
> client.executeMethod(get);
> ...
>
> Do you see any problem?
>
Jeff,
No, I do not. Could you please re-test your application with the latest
HttpClient release (3.1-beta1) just in case and see if the problem still
persists? If it does, please post a wire/context log of the HTTP session
that exhibits the problem. I'll take a look at it
Oleg
> Thanks,
> Jeff
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Jeff Ling
Product Solutions Engineer
GOOGLE
Office: (650) 253-3095
Fax: (650) 618-1835
Email: [EMAIL PROTECTED]