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 / October 2005

Tip: Looking for answers? Try searching our database.

Using NTLM authentication with WSE web service client proxy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Navin Mishra - 24 Oct 2005 13:34 GMT
Hi,

 How I could use NTLM authentication with WSE web service client proxy ?
When requesting security token, it fails with 401 Unauthorized error and is
expecting NTLM credenentials. I set the credentials property of the proxy by
adding NTLM access credentials in the cache but they does not seem to be
passed to the web service as confirmed from packet trace.

What I'm missing here ? I'm using .NET 1.1 and WSE 2.0 SP3.

Thanks in advance and regards

Navin
Pablo Cibraro - 24 Oct 2005 20:46 GMT
Hi Navin,
You have to use the following line before calling the Web service:

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

If this solution doesn't work for you, the user running your client
application doens't have enough security permissions or he can't be
authenticated by the web service.

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

> Hi,
>
[quoted text clipped - 11 lines]
>
> Navin
Navin Mishra - 24 Oct 2005 22:18 GMT
Didn't work for me :( How did I pass explicit credentials when requesting
WSE security token ? I set the credentials property of the proxy  by  adding
NTLM access credentials in the cache but they does not seem to be  passed to
the web service as confirmed from packet trace.

> Hi Navin,
> You have to use the following line before calling the Web service:
[quoted text clipped - 24 lines]
> >
> > Navin

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.