we are moving our CodeBase from .NET 4.8 WCF to .NET 6 WebApi but still have some legacy WCF clients. These clients connect with legacy WCF (SOAP HTTP-POST XML) with small deserialized DataContracts to the server. No black magic. As far as i know, WCF is using the DataContractSerializer to serialize to XML, right?
When a legacy client connects to the WebApi Server i get 500 internal server error due to the namespaces (xmlns: .... datacontract.org...) in the WCF-generated xml. (The generated XMLSerializer code reads the namespace and throws an error beacuse its not defined)
<DataContract xmlns:i="http://... datacontract.org/....namespace">
</DataContract>
(How) is it possible to make ASP.NET-Core WebApi compatible with WCF clients (http post xml) and accept/ignore these namespaces in requests and generate them for responses to satisfy the WCF client?
Maybe something with Input/OutputFormatter ?
Thank you very much and have a nice-sunny-not-so-hot-day ;)