How to create a Service

Talend ESB Studio User Guide

EnrichVersion
6.4
EnrichProdName
Talend ESB
task
Design andĀ Development
EnrichPlatform
Talend Studio

The Integration perspective of Talend Studio enables you to create a Service from an existing WSDL file or to create a new WSDL file from scratch using the WSDL editor.

You can also create different folders to better classify these Services.

To create a Service:

  1. Open Talend Studio following the procedure detailed in the Getting Started Guide.

  2. In the Repository tree view, right-click the Services node and select Create Service from the contextual menu.

  3. The dialog box displays to help you define the main properties of the new Service.

    Enter the Service properties as the following:

    Field

    Description

    Name

    the name of the new Service. A message comes up if you enter prohibited characters.

    Purpose

    Service purpose or any useful information regarding the Service use.

    Description

    Service description.

    Author

    a read-only field that shows by default the current user login.

    Locker

    a read-only field that shows by default the login of the user who owns the lock on the current Service. This field is empty when you are creating a Service and has data only when you are editing the properties of an existing Service.

    Version

    a read-only field. You can manually increment the version using the M and m buttons. For more information, see Managing Job and Route versions.

    Status

    a list to select from the status of the Services you are creating.

    Path

    a list to select from the folder in which the Service will be created.

  4. Click Next to open the Assign WSDL view on the wizard. By default, the Create new WSDL option is selected allowing you to create a new WSDL file.

  5. To import an existing WSDL file, click the Import existing WSDL radio button. Click Browse... next to the WSDL file field to navigate to an existing WSDL file. Select the Import WSDL Schemas on finish check box if you want to retrieve and store the schema from the WSDL file in the Metadata folder of the repository tree view.

  6. Click Finish to close the wizard and the Service opens in the design workspace with a basic WSDL skeleton.

    The Service you just created is listed under the Services node in the Repository tree view. The port type and the operation objects are displayed on the tree. The exclamation icon means that this defined Web service is not yet used.

  7. You can also assign an existing WSDL file to a Service after the creation by right clicking on the Service from the Repository tree view and select Assign WSDL from contextual menu to show the Assign WSDL wizard.

  8. Double click the Service you just created from the Repository tree view, or right click the Service and select Open WSDL Editor from contextual menu to open the Service in the design workspace.

  9. Edit the WSDL file in the WSDL editor. For more information, see How to edit a WSDL file.

  10. Create or assign one or more data service Jobs to the Service to implement the Web service. For more information, see How to assign a data service Job to a service operation.

Note

You can open one or more of the created Services by simply double-clicking the Service label in the Repository tree view.

To create different folders for your Services, complete the following:

  1. In the Repository tree view, right-click Services and select Create folder from the contextual menu.

    The [New folder] dialog box displays.

  2. In the Label field, enter a name for the folder and then click Finish to confirm your changes and close the dialog box.

    The created folder is listed under the Services node in the Repository tree view.

Note

If you have already created Services that you want to move into this new folder, simply drag and drop them into the folder.

For a scenario showing how to create a real-life data service, see Theory into practice: Data service and routing examples.

You can now: