Skip to Content
author's profile photo Former Member
Former Member

how to test http post for rfc

Dear Friends,

How to test (post) create functionality in sap odata for rfc

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 13, 2016 at 12:22 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 14, 2016 at 07:04 AM

    Hi Ashok,

    You need an XML payload in order to execute POST Operation.

    Simple steps to do the same are as below,

    1. Implement *_GET_ENTITY method for the same entityset for which you wish to do the POST operation provided that output structure in GET_ENTITY Method and input structure in CREATE_ENTITY Method are same.

    2. Execute http URI for GET operation in gateway client and generate the response XML payload as output.

    3. Click on use as request tab and use the XML structure as input in HTTP Request section.

    4. Change the values of the entity properties as per your choice unaltering the XML payload format

    5. execute URI with POST operation and observe the new record creation in database.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.