Windows Integrated Authentication not supported in Compact Framework???

  • Thread starter Thread starter Roberto Rocco
  • Start date Start date
R

Roberto Rocco

Hello,

I'm writing a Pocket PC application using Compact Framework that consumes a
web service where only Windows Integrated Authentication is allowed.
My code looks like this:

MyService myWebService = new MyService();
ICredentials credentials = new NetworkCredential (username, password);
myWebService.Credentials = credentials;
myWebService.PreAuthenticate = true;
myWebService.Url = url;
myWebService.MyMethod ();

Calling the MyMethod method rises a WebException without any further
comments.

When I run the very same code in the "big" .NET Framework then everything
works as expected.
If the web service is set-up to accept Basic Authentication then my Compact
Framework code works pretty good as well.

So questions are:

1. Is Windows Integrated Authentication not supported in Compact Framework??
2. If so, how can I enable it, eventually P/Invoking something???

Many thanks in advance,

Roberto Rocco.
 
AFAIK you cannot use this method through a firewall or proxy. You may have
to look at Basic Authentication + SSL.
 
Hello Stelrad,

thanks for your reply. Yet I don't believe it's a problem related to a
firewall or proxy since everything works fine from the desktop using .NET
Framework with the very same code!
It must have something to do either with the Conpact Framework or the Pocket
PC not supporting Windows Integrated Authentication.

Any clue?

Roberto
 
Hi,

Its supported just not accross a proxy or firewall. If you don't believe me
try it on your intranet!
 
I agree Roberto.

I'm having the same problem both through the Internet and the Intranet.

But, it works fine in both environments vis PocketIE. This shows that the
Compact Framework does support Windows Integrated Authentication.

I suspect that there might be an issue in the SoapHttpClientProtocol class
that might not deal with the NetworkCredential object properly.

I'd love to know if anyone else has any information on this.
 
Back
Top