Show TOC Start of Content Area

Procedure documentation Testing a Web Service Operation  Locate the document in its SAP Library structure

Use

You can test the operations of a service endpoint which runs on the local or on a remote provider system. You can test the different service endpoints grouped in a service.

After you have tested a Web service operation, you can export the test data in a test scenario. A test scenario contains information about which endpoint you tested, with what input data you tested it, and specifies the output that the endpoint returned. You can re-use a test scenario to test the same endpoint with the same input data.

Procedure

1. Testing a Web Service

       1.      Choose a service endpoint.

More information about finding a Web service: Finding Web Services.

Note

If the WSDL document contains more than one interface, the system directs you to the Select Interface step of the wizard. In the Select Interface step, choose an interface of the Web service and proceed with the next step of the wizard.

       2.      In the Select Operation step, choose an operation to test.

       3.      In the Enter Input Parameters step, enter the following data in the provided fields:

                            a.      In the Parameters area, enter input data for testing the Web service endpoint.

The input data which you enter is a consumer request to the service endpoint.

                            b.      In the Configuration area, proceed as follows:

       In the Timeout (in seconds:) field, enter a timeout for the completion of the test.

       In the Endpoint in WSDL dropdown menu, choose the endpoint of the Web service.

Note

You can test the same endpoint running on a remote provider system. In the Custom Endpoint field, in the URL, replace the current host name and port number with the host name and port number of the remote system.

       4.      Choose Execute.

       5.      In the Result step, the system displays the input parameters and the result of the test.

       6.      If you want to save the test scenario and run it again on the same endpoint, proceed with the procedure below.

2. Saving the Test Scenario

Note

This step is optional. You can complete this procedure if you want to test the same service endpoint with same the input data which you specified when you tested the endpoint

...

       1.      Choose Export Test Data.

       2.      Save the test scenario.

The system saves an XML document which contains test input data and result.

You can import and run the exported test scenario on the same endpoint. The endpoint may be on the same or on a different provider system.

More information: Testing Web Services with Pre-Defined Input Data.

 

End of Content Area