Show TOC

Background documentationTesting the HTTP Request Handler Locate this document in the navigation structure

 

If you would like to test an HTTP Request Handler, there are two methods available to you:

  • You can call the relevant service by manually entering the URL in your browser.

  • You can test the service directly in transaction SICF.

Prerequisites

Before you can test a service via the browser, you require the following information to create the appropriate URL for executing the request:

  1. Protocol (HTTP, HTTPS)

  2. Host Name

  3. Port number (depends on the selected protocol)

  4. Service (represented as a path in the SICF transaction hierarchy)

    Note Note

    The appropriate path in the SICF tree must be known. The Internet Communication Framework stores the services in a hierarchy structure. The branches provide the service path.

    End of the note.

This information is combined in the URL string that you enter in your browser to test the service you have created and the implemented handler.

Note Note

Remember that not all the information might be specified, even if you have created host services yourself.

End of the note.

If you want to test your own host service, you require the following information:

  1. Name of the host that you want to address

  2. Port through which you want to send the request to the server

  3. You must know which protocol you want to use to execute a request. This has consequences for the host or port. In ICF, you can choose from the protocols HTTP, HTTPS, or SMTP.

Process

If you want to test the service by manually entering the URL in the browser, proceed as follows:

  • You can determine your host name and your port number with the icon Information on Port and Host.

    Note Note

    Note that the Service under Port Information indicates your port number.

    End of the note.
  • Enter this information and the required service path of the SICF tree as the URL in the browser and choose Enter.

If you test the service directly from transaction SICF, the relevant information, such as host, port and URL, is determined automatically:

  • Select the required service, perform a right-hand mouse click and choose Test service.

  • In addition, the URL is supplemented with the reserved SAP client form field. This form field makes sure that you execute the handler in the client in which you are currently logged on.

You can use this function for the service and for both internal and external aliases. Once all the information has been collected, a Web browser is called and the request for calling the service is defined.

Result

If you call the service via the browser or directly using transaction SICF, a corresponding HTTP request is sent to the SAP system. On the basis of the response data that the SAP system returns, you can tell whether or not the call was successful.

More Information

For more detailed information about the structure of a URL, see the following external address at the World Wide Web Consortium (W3C):