cancel
Showing results for 
Search instead for 
Did you mean: 

Create RESTful service in ABAP with deep structure as request

sridhar_meesala
Active Contributor
0 Kudos

Hello All,

I have a requirement to consume a webservice where the data transfer happens in JSON format. I need to send a request in a deep structure and then receive the data back.

I have seen examples where the request has only one field which is sent in the URL as in the link below.

https://blogs.sap.com/2014/03/27/consuming-an-external-restful-web-service-with-abap-in-gateway/

Could someone please let me know how can we prepare the data and call the url from an ABAP program. Any sample snippets would be very helpful.

Thank you,

Regards,

Sri

Accepted Solutions (0)

Answers (2)

Answers (2)

weberpat
Contributor
0 Kudos

Hi Sridhar,

Since you are mentioning that the service you are trying to consume expects a payload, I assume that we are talking the POST method. Have you reviewed this blog post yet?

Regards,

Patrick

sridhar_meesala
Active Contributor
0 Kudos

any pointers from someone on this please?