I am creating client for soap service on .Net Core. Code was generated from wsdl https://testfinance.post.ee/finance/erp/erpServices.wsdl
Code which should send request
var client = new ErpDataExchangeClient(
ErpDataExchangeClientBase.EndpointConfiguration.ErpDataExchangeSoap11);
var eInvoiceRequest = new EInvoiceRequest()
{
authPhrase = "10****:rskzsbkqdlmlmaeoyhmzeyttacozypxbbwqudna***********",
E_Invoice = GetEinvoice()
};
var result = client.EInvoiceAsync(eInvoiceRequest).Result;
GetEinvoice()
- returns XMl document
On runtime I get an exception:
System.InvalidOperationException: 'Contract requires Duplex, but Binding 'BasicHttpBinding' doesn't support it or isn't configured properly to support it.'
Service should be fine. This is a big company API.
Nothing was changed, used only automatically generated code. What should I do to be able make API calls for this SOAP service