Test a web service

After a Web Service Operation or Resource has been defined on a Web Service, that operation or resource can be tested.

About this task

Test Web Service option information:

  • If multiple operations or resources are defined on the Web Service, select the operation or resource to test from the Operations drop-down list.
  • If your subroutine operation or resource employs dynamic arrays, you will need to specify the parameters to pass in the SOAP or REST request. See Test a web service that employs a dynamic array for more information on testing dynamic arrays on a cataloged subroutine.
  • If you have the Test tab open and create a new operation or resource on the Web Service, click Refresh to refresh the Operations list.

Procedure

  1. Right-click the Web Service that contains the operations or resources to test from the MV Web Service Explorer and select the Test Web Service option.
    The specified Web Service opens in a tab in the Editor panel.

    The tab is populated with the Service Name, Service Port, any operations defined on the service, and the auto-generated SOAP or REST Request for the current operation or resource.

    In addition, if the current operation or resource is a cataloged subroutine, the Name, Namespace, and Type for the subroutine display in the table. The user must specify the input Value to pass to the subroutine.

  2. If User ID/Password Authentication has been applied to the Web Service, do the following:
    1. Select the User ID/Password Combination check box.
    2. Enter your User ID and Password in the appropriate text boxes.
  3. If X.509 Authentication has been applied to the Web Service, do the following:
    1. Select the X.509 check box
    2. Click Browse to navigate to and select the appropriate X509 Certificate.
  4. Click Execute.
    The test is performed and the response to the SOAP or REST request opens in an new tab.
    Tip: Click Clear to clear your results.