Skip to Content
avatar image
Former Member

proxy to rest synchronous scenario

Hi,

The json which is sending by sap pi to rest receiver is as shown below

{"Details":{"Details":[{"Id":"String 1","Name":"String 2"},{"Id":"String 3","Name":"String 4"}]}}

The details which is expected by Rest url is

{"Details":[{"Id":"String 1","Name":"String 2"},{"Id":"String 3","Name":"String 4"}]}

The above bold details is adding

and causing 500 internal error issue.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 16, 2017 at 05:09 PM

    Have you tried the option to Strip Operation from Message in your REST receiver ?

    Regards

    Sanjali

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 21, 2017 at 03:14 PM

    Hi,

    To resolve the XML/JSON conversion issue you could use the "Custom XML/JSON Conversion Rules" in your receiver adapter, explained well in detail in the following blog,

    https://blogs.sap.com/2016/01/13/rest-adapter-in-sap-pipo-enhanced-xmljson-conversion/

    Note the ArrayType set as true for Property name tag, similarly set conversion rule for detail element to be ArrayType.

    Regards,

    Sanjali

    Add comment
    10|10000 characters needed characters exceeded