I have a web service which is on another server than my web server and that service requires a domain user to function...we have NTLM authentication and my application is a web part.. whenever the user enters information and clicks submit the web service is called and it does its job..Can someone please tell me how can I call the web service while passing the users credentials to it.I need to have the credentials of the currently logged in user so that it can authenticate against the web service.

Also i tried the below thing but its not working

I tried to use CredentialCache.DefaultNetworkCredentials to pass to a web service. From reading the help this should return the current user domain, username and password.

DefaultNetworkCredentials is actually returning blank values e.g DefaultNetworkCredentials.Domain = ""

Thanks

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.