on 02-16-2016 1:05 PM
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..
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.