Skip to Content

XML to JSON in SAP HCI

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 13, 2017 at 06:59 AM

    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

    Add comment
    10|10000 characters needed 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