Show TOC Start of Content Area

Procedure documentation Testing a Web Service Operation

Use

You can test the operations of a service end point that runs on the local or a remote system. You can test the different service end points grouped in a service.

After you have tested a Web service operation, you can export the test data into a test scenario. A test scenario contains information about which end point you tested and the input data you used for the test. It also specifies the result returned by the end point. You can re-use a test scenario to test the same end point with the same input data.

Procedure

Testing a Web Service

       1.      Choose a service end point.

For more information on finding a Web service, refer to Finding a Web Service.

This graphic is explained in the accompanying text

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

       2.      In the Select Operation step, select an operation to be tested.

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

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

The input data that you enter is a consumer request to the service end point.

                            b.      In the Configuration area, proceed as follows:

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

       In the End Point in WSDL dropdown menu, choose the end point of the Web service.

This graphic is explained in the accompanying text

You can test the same end point 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 end point, proceed with the procedure below.

Saving the Test Scenario

This graphic is explained in the accompanying text

This is an optional step. We recommend that you follow the steps below if you wish to re-test the same service end point with the same input data you specified in the first test

...

       1.      Choose Export Test Data.

       2.      Save the test scenario.

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

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

For more information, refer to: Testing a Web Service with Predefined Input Data.

 

 

End of Content Area