cancel
Showing results for 
Search instead for 
Did you mean: 

How do we execute POST or PUT via browser

Former Member
0 Kudos

HI Gurus,

How to execute POST or PUT method via browser ?

As of now  , Getting entity and make it as request data and then we are able to POST (create entity ) via GW client ...

How do we do the same via browser ..?

For example in e-commerce , in order to create or update entity they will raise their request via invoking URI in browser ??

Appreciate your help in advising , how Web guys or what URI web guys will call in order to invoke POST or PUT method??

Kind regards

Shiv..

Accepted Solutions (1)

Accepted Solutions (1)

EkanshCapgemini
Active Contributor
0 Kudos

Hi Sivaraman,

You can trigger any HTTP method with the help of REST Clients. You can install POSTMAN extension in Chrome and REST Client in Firefox to test these requests.

Regards,

Ekansh

Former Member
0 Kudos

Thanks Ekansh ,

when I am executing POST method in GW I am getting error status code 405 and says Method NOT allowed ..

I did GET and use that GET output as Request data , and then tried POST method ..but throwing that 405 error ..

Any reason or am I missing anything ..?

Appreciate your help..

Kind Regards

Shiv

former_member184867
Active Contributor
0 Kudos

Most probably the URL you are using is incorrect.

For GET the URL would look like : http://....../ServiceName/EntitySet(key1,key2,...)

For POST the URL would be http://....../ServiceName/EntitySet



GET payload may be used for a reference for POST, but you need to change the  URL.

Former Member
0 Kudos

Thanks Atanu Mallik ... You are right ...

Is it the same way for PUT as well ...?

Former Member
0 Kudos

Thanks Atanu Mallik... Got it .. Thanks for your help..

former_member184867
Active Contributor
0 Kudos

For PUT you can use the same URL as in GET.

I would recommend you to go through http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=318672261

for a better understanding.

Answers (0)