cancel
Showing results for 
Search instead for 
Did you mean: 

Json2XML conversion error in REST receiver communication channel in PO7.5

surender_durgam
Explorer
0 Kudos

Hi,

I have a problem with conversion on REST Receiver adapter, method GET. The communication channel is not converting the json payload to html. Getting error in PI.

The interface is sycronous: SAP S4Hana (Proxy) -> SAP PO (REST) -> External System (GET method).

Here is the json returned from external system.

{“Details”:{“OrderDetails”:[{“OrderID”:”0″,”OrderNo”:”00010″ }],”CustomerID”:”00001″,”UserID”:””,”Name”:””,”PCode”:””,”Status”:”Sucess”,”Message”:”Record Inserted Successfully”}}

Here is the error message from PO system.

MP: exception caught with cause com.sap.aii.adapter.rest.ejb.parse.InvalidJSonContent: Invalid JSON message content used; Message: “JSONArray text must end with ] at character 28 of

Bellow are the images.

Channel

Error Message

Please suggest me to resolve this error.

Regards

Surender

View Entire Topic
sanjali07
Participant
0 Kudos

Hi Surender,

Can you also share your response message type structure, looks like you are adding additional Details wrapper around the response.

Regards,

Sanjali

surender_durgam
Explorer

Hi Sanjali,

Thanks for the help. I have resolved the issue by removing add wrapper element option from my communication channel.

Regards

Surender