Skip to Content

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

Mar 23, 2017 at 01:57 PM


avatar image
Former Member

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 :

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.


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.

2 Answers

Best Answer
Morten Wittrock
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.



10 |10000 characters needed characters left characters exceeded
Beverely Parks Jun 12 at 03:32 PM


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?

10 |10000 characters needed characters left characters exceeded