Can I create REST API with XML as response? I know how to create and return JSON as response but not sure about XML
Asked
Active
Viewed 2.2k times
6
-
Possible duplicate of [Node.js: how to consume SOAP XML web service](https://stackoverflow.com/questions/8655252/node-js-how-to-consume-soap-xml-web-service) – tom redfern Mar 27 '18 at 13:53
1 Answers
8
Yeah; you always could create a REST API with XML as response. How can I respond in XML using ExpressJS?
How to response data as xml in node.js instead of json
Expressjs response as JSON and Xml
Also when asking a question first go through stack overflow to check if same question asked.
-
Thanks for the answer. Can you also tell, we can create and consume SOAP services in node? If yes, then is it a good choice and how much effort will it take? – Tarun Nagpal Apr 28 '17 at 04:24
-
http://stackoverflow.com/questions/8655252/node-js-how-to-consume-soap-xml-web-service – rt.jar Apr 28 '17 at 04:47