Skip to Content
0

XML to JSON in SAP HCI

Jun 10, 2017 at 10:15 PM

296

avatar image

Hi All,

I am facing the issue while converting the XML data to JSON format using converter but getting the below error, Has anyone done this plz help me,

Inbound processing in endpoint at /senderXMLjsontest failed with message "Fault:Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '{' (code 123) in prolog; expected '<'

Please let me know what I am missing

Regards

Gagan

xmlparser.jpg (49.9 kB)
jsonparse2.jpg (24.2 kB)
xmlparser.jpg (49.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Axel Albrecht
Jun 13, 2017 at 06:59 AM
0

Hello Gagan,

the error you receive says that XML was expected but JSON was existing ( "{" ).

Therefore I assume that not the XML2JSON converter raised the issue but the steps afterwards. What steps are you executing after the converter? Some step which requires XML instead of JSON maybe? Maybe a SOAP receiver channel?

Please also check the Message Processing Log of Cloud Integration where you should see a detailed step by step log what flow steps have been executed and for which step the error occured.

regards,
Axel

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Alex,

Yes you are right...

Actually I was calling the scenario from SOAPUI using SOAP sender channel, I changed this to HTTP and test using POSTMAN then it is working fine..

Regards

Gagan

0