Skip to main content Skip to complementary content

Configuring the service to get a specific movie

Configure the tXMLMap component for your GET request.

Procedure

  1. Double-click the tXMLMap_2 component to open the Map Editor.
  2. In the main :getMovieById table on the left, select the movieId column and drag and drop it in the Exp.key field to the left of movieId in the lookup table below.
    Information noteWarning: Make sure that the type of the movieId element is the same in the main and lookup tables. In this example, the type should be Integer. You can see the types for the selected table in the Schema editor tab at the bottom of the window.
  3. In the movie table on the right, right-click the root node and click Rename, enter movies as the new name and click OK.
  4. Right-click the movies node and click Create Sub-Element, then name the element movie and click OK.
  5. Select all the columns in the lookup table, then drag and drop them on the movie node.
  6. In the dialog box that appears, select Create as sub-element of target node and click OK.
  7. Right-click the movieId node and click As loop element, then click OK.
    Mapping in the Map Editor.
  8. Click OK to close the editor.
  9. Save your service.

Results

The second part of your data service is configured. You can run it to check the results of the GET operation.

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!