Windows Integrated Authentication not supported in Compact Framework???

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.
 
S

Stelrad Doulton

AFAIK you cannot use this method through a firewall or proxy. You may have
to look at Basic Authentication + SSL.
 
R

Roberto Rocco

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
 
S

Stelrad Doulton

Hi,

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

Stephany Young

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top