SAP Gateway: Understanding How Gateway Works with HTTP

Each time an HTTP client makes a request to a web server, that request must specify which HTTP method is being used. The commonest HTTP method is GET. This simply informs the web server that a particular resource is required. If extra parameters are required to identify that resource, then these are concatenated to the end of the URL forming what is called the “query string”.

URL Refers To HTTP Method Operation Method in Gateway Data Provider Class
Service Document GET Handled by Gateway Framework
Entity Set GET QUERY GET_ENTITYSET
Entity Set + Parameters GET READ GET_ENTITY
Entity Set POST + Parameters CREATE CREATE_ENTITY
Entity Set + Parameters DELETE DELETE DELETE_ENTITY
Entity Set + Parameters PUT or POST UPDATE UPDATE_ENTITY
Action + Parameters Variable custom EXECUTE_ACTION

The EXECUTE_ACTION method is used to implement custom functionality and can be invoked by a variety of HTTP methods depending on whether the request is modifying or non-modifying. Typically, GET is used for non-modifying requests and PUT or POST for modifying requests.

Leave a Reply

*

captcha *