This content has been marked as final. Show 1 reply
If you are using .NET 4.0 or higher you are better off using WCF. If you generate your proxy classes using "svcutil.exe" there will be a class called "CascadingPicklistServiceClient" that inherits from "ClientBase<TChannel>". To set credentials, do the following:
CascadingPicklistServiceClient picklistService = new CascadingPicklistServiceClient();
picklistService.ClientCredentials.UserName.UserName = "uuuuuuu";
picklistService.ClientCredentials.UserName.Password = "ppppppp";
The reason I recommend .NET 4.0 or higher is because it exposes a property called EnableUnsecuredResponse in the config. There was a hotfix to add this property in .NET 3.5, but setting it requires creating a custom binding.
Edited by: dana on Aug 15, 2012 1:30 PM