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
- Add a second tXMLMap and a second tRESTResponse to your workspace.
- Connect the tRESTRequest to the tXMLMap_2 with a connection.
- Connect the tXMLMap_2 to the tRESTResponse_2 with a connection, and name it movie.
- In the dialog box that appears, click Yes to get the schema of the target component.
- From tXMLMap_2. , drag your movies schema and drop it above the
- In the dialog box that appears, select tDBInput(MySQL).
- Connect the tDBInput_2 to the tXMLMap_2 with a connection.
- 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: