How to assign a data service Job to a service operation - 6.5

Talend Data Fabric Studio User Guide

EnrichVersion
6.5
EnrichProdName
Talend Data Fabric
task
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio

After the WSDL file is created, you need to associate each of the operations in the WSDL file with a data service provider Job to implement the Web service. You can either create a new data service Job or assign an existing one to it.

Note that if the operation is not defined in any binding, an error icon will automatically show on operation node in the Repository tree view and you cannot assign a Job to it.

To do so:

  1. Right click the operation node of a Service in the Repository tree view and select Assign Job in the contextual menu.

    If the operation is not defined in any binding, the Assign Job option is not available in the contextual menu.

  2. The [Assign Job] wizard opens, prompting you to Create a new Job and Assign it to this Service Operation or Assign an existing Job to this Service Operation.

    • To create a new Job, select the Create a new Job and Assign it to this Service Operation option and click Next.

      The [New Job] wizard opens. By default, a name of the Job is already set in the Name field, which is the operation name. Change it and enter the Job properties as you want. For more information on how to define the Job properties, see Creating a Job.

      Click Finish to validate the creation.

      A draft Job is opened on the design workspace with the tESBProviderRequest and the tESBProviderResponse components already selected and configured. The Property Type of tESBProviderResponse is set as Repository and the name of the operation is retrieved by default. tESBProviderRequest will listen to all requests sent to the specified Web service and tESBProviderResponse will send back the response corresponding to the request. These two components can be found in the Web Services group of the ESB family on the Palette. You can design your data service provider Job according to your own need for the data integration process and execute the Job to publish the Web service.

      For more information on how to design a Job, see Designing a Job and Routes. For details about tESBProviderRequest and tESBProviderResponse, see the documentation of these components at https://help.talend.com.

      For a scenario showing how to create a real-life data service Job, see How to create a data service at https://help.talend.com.

    • To assign an existing data service Job to the operation, select the Assign an existing Job to this Service Operation option and click Next.

      The [Assign Job] wizard appears. You can type a search string to filter the list of Jobs or leave the field blank to view all the available Jobs. Select the Job you want from the tree view and click Finish to assign it to the operation.

  3. Once the Job is assigned to the service operation, you can open it in the design workspace by double clicking the operation or right clicking the operation and select Edit Job in the context menu. But if the operation is not defined in any binding, such operations will not work, even if a Job was assigned to it.