Skip to Content
0

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

Mar 23, 2017 at 01:57 PM

359

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Morten Wittrock Mar 23, 2017 at 02:21 PM
1

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

Share
10 |10000 characters needed characters left characters exceeded