This tutorial will guide you on how to expose data in a CSV file as a data service by using the Create New Data Service wizardwizard. We will create a data service that can search for data on the file.
Note |
---|
Note that you can only read data from CSV files. That is, the ESB profile of WSO2 EI does not support inserting, updating or modifying data in a CSV file. |
...
Log in to the management console of ESB profile of WSO2 EI using the following URL on your browser: "https://localhost:9443/carbon/".
Click Create under the Data Service menu to open the Create Data Service window.
Enter CSV as the data service name as shown below. Leave the default values for the other fields.
Click Next to go to the Datasources screen.
...
- Click Add New Operation to open the following screen.
- In the Operation Name field, enter a name for the operation.
- In the Query ID field, select the query that you created.
- Save the operation.
...