public static void GetWhiteLabels()
{
var binding = new BasicHttpBinding();
binding.MaxReceivedMessageSize = Int32.MaxValue;
var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://apiurl/bfsapi.asmx"));
var req = new bfsapi.GetWhiteLabelRequest()
{
Credentials = new bfsapi.Credentials
{
UserName = "user",
Password = "password"
},
identify = "identifier",
Args = new bfsapi.GetWhiteLabelArgs
{
},
Fields = new bfsapi.GetWhiteLabelFields
{
BrickId = true,
Name = true,
Key = true,
Url = true
}
};
var resp = target.GetWhiteLabels(req);
}