cancel
Showing results for 
Search instead for 
Did you mean: 

XML to JSON in SAP HCI

gagandeep_batra
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

axelalbrecht
Participant
0 Kudos

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

gagandeep_batra
Active Contributor
0 Kudos

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

Answers (0)