.NET CF Authentication to a WebMethod

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

All
I'm looking for a good article that discusses having a PDA form access a secure webservice. There is very little documentation available on how to do this. Can anyone give me a sample recomendation

I have a Form that is running on my PDA that needs to access a web service running on a Windows 2000 server in ASP/IIS. The user needs to authenticate as an administrator, or be able to impersonate an admin for access to a COM interface that will be launched as the impersonated user. Therefore, I need to ensure that the user has sufficient priviledges when accessing the web service. Then either spawn the COM process as an impersonated user, or as the authenticated user. My Form is running on PPC 2002 through activesync, but hopefully will also run as a wireless account as well

Does anyone have any good links to how to do this, or suggested samples/configuration of IIS that will accomplish this

Thank
Nick
 
It sounds like what you need to do is:

-- Write an ASP script that has the necessary permissions to access the COM object
-- Define some sort of authentication (parameter based) which the device would pass in the URL when fetching data (e.g. ?username=me&passwd=mypass)
-- Work use the System.Net.WebRequest object to interact with your ASP page (from the device). I do not believe it supports SSL on the device side

My impression, if I am understanding correctly, is that most of the work required is server side, in which case you should post to the webservices newsgroup or the general framework newsgroup.

~~K

----- Nick wrote: -----

All,
I'm looking for a good article that discusses having a PDA form access a secure webservice. There is very little documentation available on how to do this. Can anyone give me a sample recomendation?

I have a Form that is running on my PDA that needs to access a web service running on a Windows 2000 server in ASP/IIS. The user needs to authenticate as an administrator, or be able to impersonate an admin for access to a COM interface that will be launched as the impersonated user. Therefore, I need to ensure that the user has sufficient priviledges when accessing the web service. Then either spawn the COM process as an impersonated user, or as the authenticated user. My Form is running on PPC 2002 through activesync, but hopefully will also run as a wireless account as well.

Does anyone have any good links to how to do this, or suggested samples/configuration of IIS that will accomplish this?

Thanks
Nick
 
Nick,

If you secure your web service using Digest authentication (or Basic), you
can create a NetworkCredential object and set the Credentials property on
your service object. NetCF will then do the authentication chores for you.

On the server side, you can specify authentication information in the
web.config file to provide the required credentials. Please note, if you
do this, you will want to be sure to disable directory browsing on your web
service share.

Hope this helps,
David Kline
Microsoft .NET Compact Framework
--------------------------------
This posting is provided “AS IS” with no warranties, and confers no
rights.

Please do not send email directly to this alias. This alias is for
newsgroup purposes only. To correspond with me directly, remove the
'online' from
my alias.
 
Back
Top