SoapCore
SoapCore copied to clipboard
Soap Response with xml declaration
We are using SoapCore, and it works just fine, except for one problem.
In our Soap Response there is no XML Header like
<?xml version="1.0" encoding="utf-8"?>
in the first line.
This leads to Errors with some of our Customers.
How can i add the xml declaration line?
This issue is stale because it has been open for 30 days with no activity.
This can be specified on the endpoint:
app.UseSoapEndpoint<ServiceType>((opt) =>
{
opt.Path = $"/MyService.asmx";
opt.OmitXmlDeclaration = false;
})
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.