WSDL with authentication

Hello,

I have a URL to a WSDL that requires you to authenticate. When I add it as a service reference in VS2008 it brings a popup asking for username and password. Entering the right info, I am able to download the WSDL and have VS generate info. When I try to execute the code, it is giving me a not logged in message. Do I have to authenticate myself in the code? If so, can someone explain how?

Thanks

Try checking this out:

http://stackoverflow.com/questions/806007/connect-with-wcf-to-a-webservice-authenticated-with-username-password