...
- Log into the management console of WSO2 EI and click Create in the under Data Service menu.
- Add a name for the data service and select the Enable Batch Requests check box as shown below.
- Click Next and add a new datasource.
- Connect to the Company database that you defined above.
- Click Next to open the Queries screen.
Click Add New Query to specify the query details:
Enter addEmployeeQuery as the query ID.
Enter the following SQL dialect:
Code Block insert into Employees (employeeNumber, lastName, firstName, email, salary) values(:employeeNumber,'test','test',:email,:officecode)
Click Generate Input Mapping and an input mapping mappings will be generated automatically for the employeeNumber, email, and officecode field.
Create an operation for the addEmployeeQuery query as shown below.
Click Finish to navigate to the Deployed Services window, from where you can manage data services.
...