Skip to Content
0

Create RESTful service in ABAP with deep structure as request

Oct 18, 2017 at 03:56 PM

33

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Oct 23, 2017 at 09:05 AM
0

any pointers from someone on this please?

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 23, 2017 at 03:11 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded