Call SOAP Services in .NET Core

FirstĀ  add your Soap service to the project using “Add Web Reference…”

var binding = new BasicHttpBinding();
binding.ReceiveTimeout=TimeSpan.FromMinutes(10);
binding.MaxReceivedMessageSize=Int32.MaxValue;
var endpoint = new EndpointAddress(new Uri("http://server/PingService.svc"));
var soap = new SuppliersWSSoapClient(binding, endpoint);
var result = await soap.GetProductReportXMLAsync("username", "password", 90, "14010518", "14010518");
Console.WriteLine(result);

References
https://stackify.com/soap-net-core/
https://rider-support.jetbrains.com/hc/en-us/community/posts/360000408024-Referencing-a-WSDL-service