I\'m attempting to make requests to a client\'s web service (I don\'t know the underlying platform at the client). I\'ve consumed the client\'s WSDL in Visual Studio 2010 using
I am writing this for whom that has this problem now. As in preceding answers mentioned inheritance hierarchy goes up to WebClientProtocol
class, this class has a ICredentials
property, simply set this property by a NetworkCredential
instance as below:
YourServis.Credentials = new NetworkCredential("UserName", "Password", "Domain");
I think taht is simplest way without changing Reference.cs or adding headers.