Replies: 1 comment
-
Seems like some libraries are capable of handling XML but not all of them. Look for the libraries that use jackson for processing, like jersy1. The produced code is using JSON by default but you can adapt the code in the api service that calls the endpoint and remove the json reference and ask for xml instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is an existing service that produces XML responses and published its swagger definition. I wanted to generate a java client that can read those XML responses. The swagger-code-cli tool however produced me a JSON client using
java -jar swagger-codegen-cli.jar generate -i theapi-l java --library jersey2
.How can generate an XML client?
Beta Was this translation helpful? Give feedback.
All reactions