[Mono-devel-list] Authentication and SoapHttpClientProtocol

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon Feb 2 17:27:15 EST 2004


El vie, 30-01-2004 a las 10:18, Jörg Rosenkranz escribió:
> Hello all,
>  
> We're accessing a PHP webservice using a generated web service client class 
> (Child class of SoapHttpClientProtocol). This works very well. 
>  
> Now we've activated Authentication on the web server using a .htaccess file 
> with Basic authentication. We're using following code to authenticate the
> web service client:
>  
>   _service.PreAuthenticate = true;
> 
>   _service.Credentials = new NetworkCredential("Username", "Password");
> 
> This works under MS.NET. It throws  System.Net.WebException
> "Request error. Return code was: Unauthorized" under Mono. Is this a
> known problem and are there any workarounds?

There's a bug report for this, afair. We'll get to it soon.

Thanks.

-Gonzalo





More information about the Mono-devel-list mailing list