Question
· Mar 5

Is it possible to receive an HTTP/REST request into a production, and send the request as it is in another request? If yes, what would be the best way to do this?

Hello everyone!
So, I am supposed to receive a REST-request into my production, and I need to send it, exactly as I received it, to another server.
I am struggling to find any good info on this, and have a hard time coming up with a good approach.
What would be the easiest way to do this?
- I have so far thought about possibly doing it with an EnsLib.REST.GenericService and then sending it with an EnsLib.REST.GenericOperation.
- I have also thought about manually creating a rest-service and somehow using %request and sending it directly if that would be possible.

I would be very thankful if I could get some tips on what would be the best approach for this task.

Thanks beforehand! :)

Discussion (4)3
Log in or sign up to continue

Hello!
Thank you for your response! :)

I am not doing anything special with the request. I am just supposed to receive the request and send it away, and then receive the response and show it to the original sender.
I did look into this matter with the help of WRC. We managed to make it work with what Enrico said, using an EnsLib.REST.GenericService and an EnsLib.REST.GenericOperation.