Thingworx treats the XML output from Rest Services as HTML
Hi,
I created a RESt Services which sends back the XML content. I tested this using IE and Firefox and renders as XML within the browser.
I created a ThingTemplate and implemented a service which invokes this REST service and returns as XML. (My end goal is to parse XML and take the values out and use them in my mashup. I will be using a datashape to accomplish this. I tried that the values were blank and during debuggin I find this issue).
I tested this using my Thing and test service, it is successful. I wanted to see the content I used the URL http://localhost:8080/Thingworx/Things/TestWPAConnection/Services/getSupplierEiccSurveySummary?method=post and displays my XML as text. (meaning it hides all my XML tags and displays only those values). The XML is wrapped around HTML and see the Content type as HTML/TXT.
I am wondering how to render this as XML. Is there any configuration or setting I need to use,
I would appreciate your help.
Thanks in advance.
Varathan
