Return XML from REST API.

Teradata Applications

Return XML from REST API.


I am using REST API for driver less real time connectivity. My application passes input to a macro in JSON format and get returns output in JSON format.

I wanted to retain the API call in JSON format but need the output in XML format. The reason is, multiple applications can call this API and each application might need the output in JSON, XML or CSV format.

Please can you help me to get the REST API output in XML format for the same call. Please let me know incase any additional details required.

JSON call to API:


"query":"exec SCHEMA_INC.MC_ABC('CSPWSM1,8SG3VZ1') "