Show TOC

Procedure documentationTesting Web Services in the Web Services Navigator Locate this document in the navigation structure

 

When you want to test a Web service you can use the Web Services Navigator tool (WS Navigator). It allows you to test a particular Web service before developing a client for it. The tool can be of help when you want to check the functionality of a newly developed Web service, or a Web service offered by a third-party provider. WS Navigator can be used for testing Web services developed in any programming language, you only need to specify the WSDL of the tested Web service.

You can use WS Navigator to do the following:

  • Test an individual operation of a selected Web service endpoint.

    You can choose a Web service in WS Navigator, select one of its operations, provide test data for the input parameters, and start the test. Alternatively, you can pass the information about the test as parameters to the URL with which you start WS Navigator. When the test completes, WS Navigator displays the results and the corresponding inbound and outbound SOAP messages and HTTP logs.

  • Collect and store the input data and results from tests of many Web services, and use them to test all Web services at once.

    The sets of data used for testing Web services can be stored together in a test scenario. You can create new test scenarios and save them for later use. If necessary, you can modify the scenario details, the test data, and the expected results. On executing a test scenario, WS Navigator displays the received results for all tested services and automatically compares them with the expected results.

Prerequisites

  • The user account that you use for WS Navigator meets one of the following conditions:

    • Assigned to the Administrators group.

    • Assigned to the Administrator or SAP_JAVA_WSNAVIGATOR roles.

    • Assigned to a role that contains the WSNavigator action.

    For more information, see Authorizations and User Management of the Application Server Java.

  • WS Navigator is allowed to access the systems on which the tested Web services run.

    For more information, see Configuring Web Services Navigator White List.

  • If the system on which WS Navigator runs connects to the network using an HTTP proxy, you need to configure the proxy settings.

    For more information, see Configuring Proxy Settings.

Procedure

  1. To start the WS Navigator, open a Web browser and enter the following address: http://<host>:<port>/wsnavigator

    For example, you can enter http://webservices.example.com:50000/wsnavigator

    If required, enter your user name and password.

  2. Choose one of the following tasks:

    • Choose the Service Test tab if you want to test a particular Web service operation.

      For more information, see Testing a Web Service.

    • Choose the Test Scenario tab if you want to test many Web services in a specific order using predefined input data.

      For more information, see Using Test Scenarios.