Skip to Content

Rest call via HTTP adapter (HCI) using Gateway OData Sevice as Receiver

Hi Experts,

We are trying to do REST to OData using HCI ,where we want capture the response coming from OData service as XML and we want to response back JSON, which was done using JSON-XML-JSON converts as in the image.

Attached screenshot shows the iFlow of the same.

The rest URL was made using with the help of this Blog :

https://answers.sap.com/questions/44799/http-adapter-without-endpoint-hci.html

Following Image is our rest url :

When we are trying send the back the response as JSON to the receiver adapter here which apparently is same as the sender rest url. The rest URL is also attached above.

Here we are providing the REST url to the service team,through which POST is made.

Please suggest how to proceed further.

Thanks

Sreyas R

rest-hci.jpg (210.6 kB)
rest-hci.jpg (220.7 kB)
rest-url.jpg (14.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Mar 23, 2017 at 02:21 PM

    Hi Sreyas

    If what you want to accomplish, is returning the JSON result in the initial HTTP call, you don't need a receiver connected to the end event. The message body, i.e. the JSON generated by the XML to JSON Converter step, will be returned to the caller.

    Regards,

    Morten

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 12 at 03:32 PM

    Morten,

    I'm having a somewhat similar issue. I'm not using a Request/Response, just a direct send to a JMS Queue. Sender is HTTPS with JSON. I'm converting to XML in order to send to a JMS Queue that will then post into ECC. My issue is the response going back to the Sender is the body from the result of the mapping. Shouldn't this be returning the JSON body that was sent?

    Add comment
    10|10000 characters needed characters exceeded