Solved

Web Service Authentication

Posted on 2008-06-18
1
889 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
JuckMan earned 250 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

622 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