hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Chitão Teixeira <cteixe...@mercador.com>
Subject RE: HTTP/1.1 401 Unauthorized xxx
Date Tue, 25 Sep 2007 17:10:47 GMT
Well, the problema was something that i cant explain for sure, but was solved like goes

The code

client.getState().setCredentials(new AuthScope(http://123.12.12.12, 80, null),   
						new UsernamePasswordCredentials("MyUser", "MyPwd") ); 

Did not work, so I changed it to 

Credentials defaultcreds = new UsernamePasswordCredentials("MyUser", "MyPwd");
client.getState().setCredentials(AuthScope.ANY, defaultcreds);

Dont know why, but it worked...

Thanks for the tip Roland

Cheers,

Christian

-----Original Message-----
From: Roland Weber [mailto:ossfwot@dubioso.net] 
Sent: terça-feira, 25 de setembro de 2007 13:57
To: HttpClient User Discussion
Subject: Re: HTTP/1.1 401 Unauthorized xxx

Christian Chitão Teixeira wrote:
> Problem solved...
> 
Glad to hear that. It would have been nice to add an explanation how you've solved it, for
others that run into the same problem.

> Another issue:
> Is it possible to "create" a webservice not based on a wsdl URL, but in a wsdl in memory?

I'm afraid you're on the wrong list. This one is about HttpClient.
Maybe the WebServices folks can help you out:
http://ws.apache.org/mail.html

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message