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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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/.

Using CSV files is an easy and common way of storing simple tabular data. This sample demonstrates the usage of a CSV file as a datasource for data services in WSO2 Enterprise Integrator (WSO2 EI).

About the sample

The CSV file (Products.csv) stored in the <EI_HOME>/samples/data-services/resources/ folder contains data about the products that are manufactured in an automobile company. Products refer to cars/motorocyles. The data table has the following columns: "ID", "Name", "Classification" and "Price". The sample data service used in this demonstration (CSVSampleService.dbs) contains a single operation named getProducts , which lists all the products that are manufactured by the company.

See Data integration for a definition of data services and operations.

Building the sample

The sample data service named CSVSampleService should be deployed using the instructions in Samples Setup.

Executing the sample

The sample service can be run using the TryIt tool, which is bundled with WSO2 EI, or a code-generated java client sample as discussed in Data Services Clients. 

Follow the steps below to test this functionality using the TryIt tool:

  1. Log in to the management console of your server and click List under Services in the navigator. The data service named CSVSampleService will be listed.
  2. Click Try this service to open the TryIt tool.
  3. Select the "getProducts" operation and click Send to execute the request. You will get a product list in the response as shown below.
  • No labels