Hi Guys, Can we get xml data and return xml in RES...
# suitescript
a
Hi Guys, Can we get xml data and return xml in RESTlet? Thanks!
s
I haven't done this in a while but yes you should be able to return XML. I favor the JSONIX library for translating between NS data (javascript) and XML or visa versa.
a
Thanks @stalbert. I will work on this.
b
expect to make a tradeoff, Creating a Content–Type Header notes when xml is supported as a content type
expect to use plain text if you need both the request and response to have content