Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2006

Tip: Looking for answers? Try searching our database.

About the web service using Integrated windows authentication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dandan Zhang - 20 Dec 2006 03:46 GMT
Now I have a web application, a web service and a SQL Server database.

      The Web application will invoke the web service, the web service
invokes the SQL Server stored procedure.

      I let the web service run in an application pool which runs under a
domain user, this domain user has permissions of accessing database and the
connection to database is trusted connection. All these work well.

      The web application will be used in internet (not in the intranet),
but the web service can only be used in intranet so I want to use the
integrated windows authentication for the web service, can I?

      No I want to let the web application use the “Enable anonymous
access” and web service use the “integrated windows authentication”. If so,
when I use the web application to invoke the web service, I will receive the
“The request failed with HTTP status 401: Unauthorized.     at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)”

     

      I already used the following two ways in my web application code when
invoking web service:

      Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

(this method works only when the web application and web service are in the
same box, when I deployed the two in different computer, I still got the
error “The request failed with HTTP status 401”)

    Or

    System.Net.CredentialCache cache = new System.Net.CredentialCache();

    cache.Add(new Uri(Proxy.Url), "Negotiate", new
System.Net.NetworkCredential("username", "pass", "domain"));

      Proxy.Credentials = cache;



      Could you please tell me if I use the “integrated windows
authentication” for the web service, how does the user’s certificate be
conveyed to web service? (the application user will be anyone in the
internet, will the web service know him)

Sincerely waiting for your feedback!
Manish Bafna - 26 Dec 2006 09:09 GMT
Hi,
You will find following two links useful which addresses the issues faced by
you:
http://odetocode.com/Blogs/scott/archive/2005/02/24/1053.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/trouble
shooting_authentication_problems_on_asp_pages.asp


Thanks and Regards,
Manish Bafna.
MCP and MCTS.

> Now I have a web application, a web service and a SQL Server database.
>
[quoted text clipped - 44 lines]
>
> Sincerely waiting for your feedback!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.