RicoSuter/NSwag

Generate a Rest Client with XML Deserialization and not JSON

Open

#2082 opened on Apr 3, 2019

View on GitHub
 (17 comments) (0 reactions) (0 assignees)C# (6,291 stars) (1,189 forks)batch import
help wantedproject: NSwag.CodeGeneration.CSharp (Clients)type: enhancement

Description

I am interfacing with an "external web API server" that returns only xml content-type. I have generated a rest client with NswagStudio but an exception is always thrown because of the response type which is XML and the deserialisation type which is JSON.

Is there any way to generate a client with XML Deserialisation?

Contributor guide