Using the Web API RESTful Test Client

The Web API RESTful test client is a web page bundled with the Web API RESTful application. When the test client launches, you see a single web page. Perform the following steps to use the test client:

  1. Enter the controller name for the Web API RESTful Web Service you are testing in the Controller name text box. The controller name matches the name that you specified when you scaffolded the application controller; the controller name is not case sensitive. Refer to Scaffold Unisys Web API Controller for ePortal Data Source Dialog for more information.

  2. After entering the correct controller name, click the Connect button.The test client connects to the web service and returns the result in the Message name box as well as the box below. The results are in JSON format. For more information on JSON, refer to http://json.org.

  3. To test a particular method call:

    1. Enter the correct message name in the Message name box.

    2. Enter the desired values in JSON in the box below the Message name box.

    3. Click the Post button.