This documentation is for WSO2 Enterprise Integrator version 6.1.1 . View documentation for the latest release in the 6.x.x family and the latest release in the 7.x.x family.

All docs This doc
Skip to end of metadata
Go to start of metadata

Note that WSO2 EI is shipped with the following changes to what is mentioned in this documentation:

  • <PRODUCT_HOME>/repository/samples/ directory that includes all Data Integration samples is changed to <EI_HOME>/samples/data-services/.
  • <PRODUCT_HOME>/repository/samples/resources/ directory that includes all artifacts related to the Data Integration samples is changed to <EI_HOME>/samples/data-services/resources/.

This sample demonstrates how to use code-generated clients with data services. The service stubs are created using WSDL2Java tool.

Building the sample

Deploy the sample data services and start the server using the steps given in Samples Setup.

To executing the sample

  1. Open a command prompt and navigate to the <EI_HOME>/samples/data-services/clients directory.
  2. Build the clients by executing the ant command as shown below:

    ant
  3. You can either run all the generic clients simultaneously or start an individual client.
    • To start all the generic clients (e.g., rdbms, csv, excel, gspread, batch_request), run the ant command as shown below:

      ant all
    • To start a specific sample client, run the ant command with the client name (see list of client names below). For example, to start the secure_sample client, run the following command:

      ant secure_sample

      Listed below are the separate ant commands for each data service client.

      • rdbms - RDBMS data source based data service clients.
      • csv - CSV data source based data service client.
      • excel - Excel data source based data service client.
      • gspread - Google Spreadsheet data source based data service client.
      • batch_request - Represents a data service client, which executes a batch request in a data service.
      • secure_sample - Represents a data service client where a security enabled data service is called. The data service security is enabled manually by the usage of a "services.xml" file in conjunction with the data service.
      • file_service_app - Represents a standalone Java application that uses REST style invocations to transfer binary data. This also demonstrates the usage of streaming data, where a file of any size can be uploaded or downloaded using the application.
  • No labels