10-21-2016 3:52 PM - edited 01-21-2024 10:18 PM
Hi Abhishek,
Normally this error occurs when you have a more than one root node in the XML. I think response coming from rest service does not contain single root JSON element and JSON response contains multiple elements at root node level and XML structure only accept one root node not multiple root nodes that is why you getting above error.
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
Thanks for your inputs. I am able to resolve the issue based on your above comments.
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
You are absolutely correct in the above. JSON received from REST webservice has multiple elements at root node. Can you please let me know how can I convert it into XML in this case.
Regards,
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek,
Check in your adapter configuration can you able to add the root node if JSON does not contain, i don't have Advantco rest adapter, i am using SAP Rest adapter.
Regards,
Praveen.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.