I am consuming a webservice using WSDL in windows application. When I try to use method, i get the following error:-
The HTTP request is unauthorized
Here is the how it is working for me:-
Config file setting looks like this:-
and here i am passing user credentials:-
var ser = new GetDataClient(); ser.ClientCredentials.UserName.UserName = "userid"; ser.ClientCredentials.UserName.Password = "Pa$$word1";