REST API Response format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2018 11:18 PM
Hi All,
I am working on an integration. i have to use GET method.
I have an api end point with method get which only return in the format of XML only. I am only supposed to use REST.
How can i convert the XML to a table in servicenow effectively. I am not to use SOAP.
Thanks,
Abhi
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2018 11:42 PM
Hi Abhinab,
So the 3rd party API will only send XML as response instead of JSON.
So once you receive xml response I assume you would require to parse the xml tags and update your servicenow table?
is that your question?
Are you facing issue in parsing xml response?
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2018 11:57 PM
Yes exactly. they send the response from thrid party tool as xml only. so ow i need to convert those data based on some node in xml DOM to servicenow tables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2018 12:39 AM
Hi Abhinab,
So what issue you are facing in parsing the xml response?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2018 01:26 AM
Its not the error i have now. i need to know how to do it as XML is not needed for me. Atleast I am only getting the XML in response body when used in REST Message module in SNOW