cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP Web Services

former_member645878
Discoverer
0 Likes
989

Hi all,

I'm working on a simple ABAP Web Service to share some data with REST model, specially GET method.

I've been able to find documentation to implement a basic WS, it works as long as you request him in the right way. My WS use CL_REST_HTTP_HANDLER and as many CL_REST_RESOURCE as needed, for each handle parameter.

But i would like to add functionality for security as checking the method for GET-only or for HTTPS. Do you have any links, web sites or document that could help me to implement that ?

Thanks,

Alexandre

Accepted Solutions (1)

Accepted Solutions (1)

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert

If your REST WS is made in SICF with class handler implementing IF_HTTP_EXTENSION interface.

Then you can check HTTP method (GET, POST, PATCH...) with:

"SERVER is TYPE REF TO IF_HTTP_SERVER in IF_HTTP_EXTENSION~HANDLE_REQUEST method

DATA(l_method) = server->request->get_method( ).

Security (SSL) and authentication can be set in SICF service entry, tab "Logon data".

former_member645878
Discoverer
0 Likes

Thank you for the answer, my handler class actually implement IF_HTTP_EXTENSION, so i'm going to try with the command you give me

Answers (0)