Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Corresponding statement to JSON.stringify for XML outputs in XSJS

$
0
0

Hi All,

My XSJS fails to get data from an external server due to the line 08 below.

My input is an XML and the output returned is also XML and not JSON.

I just can't seem to find the corresponding XML counterpart for JSON.stringify. Let me know please if you are aware of the answer.

 

req.contentType = "text/xml";     req.setBody(data);     client.request(req, dest);     var response = client.getResponse();       var resBody = response.body.asString();
$.response.setBody(JSON.stringify({ //This might be the problem    "body" : resBody;

Thanks,

Shyam


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>