Hi all,

Has anybody successfully connected to a Webservice using Windows
Authentication? I can connect if Anonymous is enabled but as soon as I
select Windows and give the service proxy the credentials it comes back with
a 401 error. This is the code:

                TestService.Service1 ts = new TestService.Service1();
                CredentialCache cache = new CredentialCache();
                cache.Add(new Uri(ts.Url), "Negotiate", new
NetworkCredential("username", "pasword"));
                ts.Credentials = cache;
                ts.PreAuthenticate = true;
                identity.Text = ts.WhoAmI();

This code works perfectly from a Windows form test project so I know the
webservice itself is ok. I'm using the emulator and have changed the URL to
use the IP address of the host rather than "local"

Thanks in advance for any help.

Regards
Brian



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Accessing-WSE-Webservices-using-NTLM-tp4474862p4474862.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to