Testing a RESTful web service

  

Web Services  

You can test a RESTful web service only if it is saved as 'Enabled'. However, if the service is not enabled or has not yet been saved the test appears disabled.

To test a service:

  1. Select the protocol, path and method for the service.
    The task appears with the description.

  2. Enter any required parameters values. If the method has a body schema then you can fill in the required data. If the method has a body but no schema, then you can type any text as the request body. If the method is put or post and there is no schema defined then you can type any data into the request body field and then set the content type.

  3. Click Test this RESTful Service.
    The panel displays the status received in the response to the service call (along with the description of the status) and show any response body received.

  4. If the response status received matches a response status defined in the service and this response has a schema defined, then the response body is compared to expected schema and highlighted if not valid. The Response has an X that allows you to clear it before running the test. The response Content-Type header appears below the response body.

Comment on this topic

Topic ID: 400042