Hello, I have recently been working on the implementation of a customization publication project through the SOAP service type with api/ServiceGate.asmx, I encountered this problem when consuming the endpoint to upload the packages to the platform:

The method is:
private static async Task PublishCustomizationPackage(string packageFilename, string packageName, string url, string username, string password)
{
BasicHttpBinding binding = new BasicHttpBinding
{
AllowCookies = true,
Security =
{
Mode = BasicHttpSecurityMode.Transport
},
OpenTimeout = new TimeSpan(0, 10, 0),
SendTimeout = new TimeSpan(0, 10, 0),
ReceiveTimeout = new TimeSpan(0, 10, 0)
};
EndpointAddress address = new EndpointAddress(url + "/api/ServiceGate.asmx");
var gare = new ServiceGate.ServiceGateSoapClient(binding, address))
Console.WriteLine($"Logging in to {url}...");
await gare.LoginAsync(username, password);
Console.WriteLine($"Uploading package...");
await gare.UploadPackageAsync(packageName, File.ReadAllBytes(packageFilename), true);
Console.WriteLine($"Publishing customizations...");
await gare.PublishPackagesAsync(new string[] { packageName }, true);
Console.WriteLine($"Logging out...");
await gare.LogoutAsync();
}
I would appreciate if someone knows how to fix it.