Re: How to call a web service using NT Authentication

From: John Lee (johnl_at_newsgroup.nospam)
Date: 12/29/04


Date: Tue, 28 Dec 2004 16:37:06 -0800

FYI,

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

will do that job!!!

"John Lee" <johnl@newsgroup.nospam> wrote in message
news:e540OiT7EHA.1300@TK2MSFTNGP14.phx.gbl...
> Hi,
>
> I have a web service setup as "Integrated Windows Authentication" only,
> How can I set the credential to call the web service from Windows
> application? I tried to create the proxy, and the Network Credential class
> required Domain, userName and password - that's not a good one because the
> password should not be hard-coded. - Even I hardcoded it still give me
> "401 - not authorized error" Do I need to use WSE2.0 to call a WS using NT
> authentication?
>
> Any help and tips will be greatly appreciated!
>
> Thanks a lot!
> John
>



Relevant Pages

  • Re: ADFS Development Issues
    ... site to be automatically authenticated by our windows application so ... based on redirects and possibly uses forms-based authentication to collect ... web service proxies don't handle this type of thing ... the server based on how it needs to work. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Permissions needed for a Windows Forms Control to call a WebService
    ... Thanks John, ... 'sandboxing' doesn't allow the code to have 'Web Access' to web service. ... When embedded in a windows form the control works fine and calls the ... > Professional JSP 2nd Edition ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Calling ws secured by Forms Auth. from WinForms userctrls in HTML
    ... from Windows Forms user controls embedded in HTML. ... Now I what to secure my web-services using Forms Authentication on the IIS. ... This works just fine for manual browsing of the web service. ... But when the embedded Windows Forms user control tries to access the web ...
    (microsoft.public.dotnet.general)
  • Problem with control hosted in IE
    ... I have a windows control that resides in a strong named assembly. ... The virtual directory's authentication is windows (as the application's - ... I logon to another machine using a local account (not one that the IIS could ... Before calling any method of the web service, ...
    (microsoft.public.dotnet.security)
  • Re: I keep receiving a file/path access error
    ... It is running under a low priviledge account that ... > Visual Basic application but not when called by the ASP.NET Web Service. ... > is running on IIS 5.1 on a Windows 2000 Server. ... > Authentication and Basic Authentication. ...
    (microsoft.public.dotnet.framework.interop)