Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Web Service Authentication

Posted on 2008-06-18
1
Medium Priority
?
892 Views
Last Modified: 2013-12-16
I've developed a web service that I want to require the client to pass a username / pwd to invoke the web service. The web service will run on a server that's part of an Active Directory windows domain. The username / password will exist in the Active Directory domain. I'm thinking that I want to use "Digest Authentication" as the authentication provision for the service based on the requirements above. Does anyone disagree or see a more suitable authentication provision.

Can anyone provide some code examples of the call on the client (and any code needed in the Web Service) to authenticate based on "Digest Authentication"
0
Comment
Question by:Jeffreymarcum
1 Comment
 
LVL 5

Accepted Solution

by:
JuckMan earned 1000 total points
ID: 21836246
Here is a code snippet that might help you..

MyWebSerivce service1 = new MyWebService();
MyWebService.UserCredentials myCredentials = new MyWebService.UserCredentials();
myCredentials.userid = "UserId";
myCredentials.password = "password";
service.UserCrdentialsValue = myCrdentials;
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question