Configuring the service call - 6.5

ESB REST

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > ESB components > ESB REST components
Data Quality and Preparation > Third-party systems > ESB components > ESB REST components
Design and Development > Third-party systems > ESB components > ESB REST components
EnrichPlatform
Talend Studio

Procedure

  1. Double-click the tRESTClient component to open its Basic settings view.
  2. Fill the URL field with the URL of the REST service you are going to invoke, "http://localhost:8088/users" in this example. Note that the URL provided in this use case is for demonstration purposes only and not a live address.
  3. From the HTTP Method list, select GET to send an HTTP request for retrieving the existing records.
    From the Accept Type list, select the type the client end is prepared to accept for the response from the server end, XML. Leave the rest of the settings as they are.
  4. Click the [+] button beneath the Query parameters table to add two parameters, from and to, and set both parameters to 2, to get the information of the user with the ID of 2.
    Alternatively, you can query the information of the user with the ID of 2 by adding ?from=2&to=2 to the service URL.
  5. In the Advanced settings view of the tRESTClient component, select the Log messages and the Convert Response To DOM Document check boxes to log the message exchange to the server and convert the response from the server to document type.