In fact, the only difference is that in the first, the scope could be wrong or 
something..
The second the scope is not specified...

Christian

-----Original Message-----
From: Christian Chitão Teixeira [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 25 de setembro de 2007 14:11
To: HttpClient User Discussion
Subject: RE: HTTP/1.1 401 Unauthorized xxx

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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to