[Mono-devel-list] Authentication and SoapHttpClientProtocol

Jörg Rosenkranz joergr at voelcker.com
Fri Jan 30 04:18:36 EST 2004

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?



More information about the Mono-devel-list mailing list