Start of Content Area

Procedure documentation Inserting an HTTP Request Handler  Locate the document in its SAP Library structure

Use

For an HTTP request handler to be called using a URL, it must first be defined in a service. If you have developed your own request handler, you need to insert it into the relevant service in order for it to be usable.

Prerequisites

You have created a request handler.

Procedure

       1.      Call transaction SICF.

If no suitable service exists, create a new service.

       2.      If a suitable service does exist, double-click on it to open it..

       3.      Choose Handler list.

       4.      Choose This graphic is explained in the accompanying text Change.

       5.      Enter a request handler in the list (by choosing F4 if necessary).

Note

You can create multiple HTTP request handlers for a single service. These are then called in the specified order. You can use return codes to control whether other handlers from the list are called, and if so, which ones.

       6.      Save your entries by choosing This graphic is explained in the accompanying text Save.

       7.      Check that the service is active.

Result

The request handler can be called up via a URL that contains the relevant service path.

Example

The ABAP Application Server runs on the computer saphost on port 8080. In transaction SICF, you have created the service sap/bc/ping in the HTTP service tree and entered your handler class CL_HTTP_MYHANDLER in the handler list.

If you enter the URL http://saphost:8080/sap/bc/ping, the method handle_request(), which you created for your HTTP request handler, is called.

 

 

 

 

 

 

End of Content Area