REST API Response format

Abhinab Achary1
Tera Guru

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

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

Hi Abhinab,

So what issue you are facing in parsing the xml response?

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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