Entering content frameProcedure documentation Linking a HTTP Request to an ICF Service Locate the document in its SAP Library structure

Use

You need to link a HTTP request to an ICF service so that the HTTP request handler is called up in the browser when a URL is entered. Use transaction SICF to do this.

Prerequisites

You have implemented a class that represents the HTTP request handler. This class implements the interface IF_HTTP_EXTENSION. You have implemented the method HANDLE_REQUEST().

Procedure

Now link your HTTP request handler with an ICF service: Creating a Service

If required, you can use Virtual Hosts.

For information on assigning aliases when creating links, see the following sections:

Internal Aliases

External Aliases

You must activate your service before you can call it from the browser. See Activating and Deactivating an ICF Service.

Result

When the relevant URL is called, the HTTP request handler is called.

Example

SAP Web Application Server is running on the host 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 (see Implementing Handler Classes).

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.

Leaving content frame