Web service authentication

  • Thread starter Thread starter Saverio Tedeschi
  • Start date Start date
S

Saverio Tedeschi

Hi all gurus,
I've developed some web service cosumed by win app, and now I'm trying to
face CF pitfalls. AFAIK Windows authentication isn't allowed, but anonymous
doesn't allow my SQL Server to render DataSet I need. So I'm trying to use
basic authentication, but since there is not a CredentialCache member of CF
Net Class, how can I use Credentials? Or can I apply another way? I think I
can leave Windows authentication + impersonation=true in web.config, then
Basic and Windows authentication (one 4 PPC, the other 4 PCs) in IIS 5,
mixed authentication in SQL Server; and in client side?
 
Take a look at Mark Ihimoyan's blog. This has code for implementing NT
authentication with .NETCF v1.0 which will allow you to authenticate with
the web service without having to change your server or other PC clients
settings.
http://blogs.msdn.com/ihimmar/archive/2005/06/07/426500.aspx

If you follow the links to parts 2,3 + 4 of the series there is code and an
example of implementing this. For .NETCF v2.0 NTLM and Kerberos
authentication are supported out of the box.

Peter
 
Your help is invaluable, Peter; thank you so much.
However, my expertise in C++ is not very high, and I'm not able to compile
that code neither in VC++ (VS2003) nor in eVC 3 (in this case I'm not able
to find stdafx.h). Is this to be buit in eVC 4? In this case it doesn't suit
my needs, as I target both PPC220 and PPC2003. What can I do (other than
fallback in basic authentication?). Have a nice day.
 
Back
Top