Last post Jun 15, 2014 10:51 PM by Terry Guo - MSFT
Jun 13, 2014 08:46 PM|saasdesigner|LINK
Jun 15, 2014 10:51 PM|Terry Guo - MSFT|LINK
WCF service with username password authentication have two ways to use it:
1. When you add the reference in your project, it will ask you input the username and password, if you input the correct username and password, you don't need to input it again in the course of use.
2. You can also use the following code to pass the authentication:
var result = new CustomerDeskOperationsClient(binding, endPoint);
result.ClientCredentials.UserName.UserName = "username";
result.ClientCredentials.UserName.Password = "password";
More information please refer to:
Hope it helps.