Skip to Content

Create RESTful service in ABAP with deep structure as request

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 23, 2017 at 09:05 AM

    any pointers from someone on this please?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 23, 2017 at 03:11 PM

    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

    Add comment
    10|10000 characters needed characters exceeded