SoapCore icon indicating copy to clipboard operation
SoapCore copied to clipboard

Soap Response with xml declaration

Open sebastian-arz opened this issue 2 years ago • 3 comments

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?

sebastian-arz avatar Jul 14 '22 06:07 sebastian-arz

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 14 '22 03:08 github-actions[bot]

This can be specified on the endpoint:

app.UseSoapEndpoint<ServiceType>((opt) =>
{
	opt.Path = $"/MyService.asmx";
	opt.OmitXmlDeclaration = false;
})

andersjonsson avatar Aug 16 '22 13:08 andersjonsson

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 16 '22 04:09 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Sep 30 '22 04:09 github-actions[bot]