hello, i'm trying to return an XMLDOC file with a...
# integrations
t
hello, i'm trying to return an XMLDOC file with a restlet GET function. Do you know if it's possible ? I receive that error all the time: <error>     <code>INVALID_RETURN_DATA_OBJECT</code>     <message>The XML document does not contain a root element because the RESTlet function does not return a JavaScript Object.</message> </error>
b
its been a while since i tried, but i think you have to set the content-type header and return a xml.Document from Parser.fromString
💯 1
🤩 1
t
great thanks.