Skip to main content Skip to complementary content

Adding components for the second GET request

Add new components and connect them to use an operation to get a specific movie from your database.

Procedure

  1. Add a second tXMLMap and a second tRESTResponse to your workspace.
  2. Connect the tRESTRequest to the tXMLMap_2 with a Row > getMovieById connection.
  3. Connect the tXMLMap_2 to the tRESTResponse_2 with a Row > Main connection, and name it movie.
  4. In the dialog box that appears, click Yes to get the schema of the target component.
  5. From Metadata > Db Connections > connection_mysql > Table schemas, drag your movies schema and drop it above the tXMLMap_2.
  6. In the dialog box that appears, select tDBInput(MySQL).
  7. Connect the tDBInput_2 to the tXMLMap_2 with a Row > Main connection.
  8. Save your service.

Results

You have added the components for your GET request and you can now configure the tXMLMap.

Your service should look like this:

Service in the design workspace.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!