You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Convert XML to Json

Received Response
66
Views
12
Comments
edited Jul 12, 2018 2:11PM in Integration 12 comments

Summary

Convert XML to Json

Content

Hi All,

 

I have requirement to convert XML output as Json,

Steps I have followed

1) Create Rest Service Connection which will work as starting point to the integration

2) Run the BI report

3) Convert base64 output XML string

4) Convert XML string to Json

 

First 3 steps are working fine

 

for 4th one I have written a java script, this JavaScript is tested using html file.

In browser I get desired result,  but ICS throws this error

 

"Review JavaScript error(s) and fix them: error: [email protected] -> TypeError: Cannot parse XML: PI with the name 'xml' can occur only in the beginning of the document. at: function=strxml2json2, loc=js/XMLTOJSON_NEW2_01.00.0000/xmltojsonFile2.js, line=6 Encountered error(s) while executing JavaScript"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!