Hi jaklithn,
Based on your description, you want to expose an ASP.NET webservice which
will be called by 3--5 clients in the same local intranet. Also, since the
webservice will connect SQL Server to execute query(require
authentication), you're looking for an effecient means to authenticate
those webservice clients, correct?
If so, I think for the webservice server-side (which connect backend
database), I think you can always use a fixed domain account to run it so
that I can have the sufficient permission in SQL server.
For client-side, you can consider either of the following authentication
approaches:
1. Use the built-in authentication support of WebRequest (the .NET
webservice client proxy is actually using webrequest component) which has
"Credentials" property to allow to set client credentials info. When the
client-side call webservice, it can supply the credentials when creating
the proxy:
#Implementing NTLM Authentication for Your ASP.NET Web Services
http://www.dotnetjunkies.com/Article/6B31D299-347C-4B85-82C5-954546165C80.dc
ik
In your web service application you can configure windows authentication
and only allow certain fixed accounts to access the webservice.
2. Or you can use SoapHeader to add your own authentication properties
(such as username/password) that will be passed through SOAP headers.
SoapHeaders can be set on proxy at intialization time rather than set in
each webmethod call. Here is a code project aritcle introduce this:
#Authentication for Web Services (using SOAP headers)
http://www.codeproject.com/KB/cpp/authforwebservices.aspx
Some other information about ASP.NET webservice authentication over http:
#HTTP Security and ASP.NET Web Services
http://msdn2.microsoft.com/en-us/library/ms996415.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------