cancel
Showing results for 
Search instead for 
Did you mean: 

how to test http post for rfc

Former Member
0 Kudos

Dear Friends,

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

Accepted Solutions (1)

Accepted Solutions (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Ashok,

Please have a look at the below which describes the testing of the Create operation ->

Regards,

Ashwin

Answers (1)

Answers (1)

0 Kudos

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.