Example 2: Configuring the REST step

In the REST step, Tom configures the URL and the HTTP DELETE method to use to invoke the REST web service.

Procedure

  1. In the outline, click the REST step.
  2. On the General page, select DELETE from the HTTP method list.
  3. In the URL field, specify a URL string that includes job parameters:
    1. Click Insert Parameter.
    2. In the Insert Parameter window, select the restServer job parameter.
    3. Click OK to add the parameter to the URL.
    4. Repeat steps a to c to enter the restServerPort job parameter to the URL.
    5. Enter the rest of the URL manually: http://#restServer#:#restServerPort#/Bookmarks/rest/bookmarks/1

    In this URL, index entry 1 is the resource to remove from the bookmarks service. Bookmarks is the service where you can add bookmarks by specifying the index value. In this job, you delete a bookmark by passing its index value to the URL.

  4. On the Response page, specify information about the response body of the REST web service:
    1. Select the Pass the received body to check box.
    2. Select the A text node named body in the Output schema option.
    3. From the Content type list, select application/xml.