Procedure
-
From the General view, select the
Connectors tab and click the
Add... button, and then in the connector wizard
select Talend > Talend ESB REST Client and then click Next.
-
Give the connector a name, ESB_RS_getCustomerInfo in
this example, and click Next.
-
Configure the REST Service.
- Fill the Endpoint URL field with the URL of the REST Service implement by the DemoREST Job, http://localhost:8090/services/customers in this example.
-
Fill in the Relative Path field with
${customer_ID}, which corresponds to the
variable you just created.
This allows you to enter the relative path on your Web browser when the process is executed.
-
From the Method list, select
GET.
This operation will retrieve data from the REST service to be called.
-
Click Next.
The Configure TESB Feature page opens to let you configure service locator information, service activity monitoring, and business correlation. As we do not use any of these options in this example, simply click Next to proceed with connector output mapping.
-
Click the Create data button.
-
In the Add a new variable dialog box, name the variable
Customer_Info, clear the Auto-generate
form check box, and then click Finish to
close the dialog box.
- Click Finish to close connector configuration wizard.