public static void UpdateWhiteLabel()
{
var binding = new BasicHttpBinding();
binding.MaxReceivedMessageSize = Int32.MaxValue;
var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://apiurl:20010/bfsapi.asmx"));
var req = new bfsapi.UpdateWhiteLabelsRequest()
{
Credentials = new bfsapi.Credentials
{
UserName = "user",
Password = "password"
},
identify = "identifier",
Fields = new bfsapi.UpdateWhiteLabelFields()
{
Name = true,
Url = true
},
Entities = new bfsapi.UpdateWhiteLabel[]
{
new bfsapi.UpdateWhiteLabel
{
BrickId = new Guid("5d263308-ff11-48d7-bd94-41aac88ac8e7"),
Name = "NewName",
Url = "NewUrl"
}
}
};
var resp = target.UpdateWhiteLabel(req);
}