This is the WSO2 Data Services Server documentation version 2.6.3

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 2 Next »

Follow the instructions below to create a data service using a sample Google spread sheet as the data source. 

1. Log on to the Data Services Server Management Console.

2. Click the Main tab and select the Create link under Data Services.

3. The Create Data Service page appears. Fill in the fields and click Next. The Data Service name is mandatory.

Info:
For more information on Advanced Configurations in creating data services, refer to the Transaction Handling section.

4. The Data Sources page appears. Click on the Add New Data Source link and add your Data Source details. Select the data source type as Google Spread Sheet.

You can use either private or public Google spread sheets as the data source. If the spread sheet is Private, you will be prompted to enter the user name and the password. For example,

Click Save. You have added a Data Source to your Web Service. Click Next to proceed.

6. The Queries page appears.

Initially your service does not include any queries. Click on 'Add New Query' to add a new query, input/output mappings, events etc. to your Data Service. Enter query details according to the structure of the response you want.

Scraper variable should be the same as the output name in the configuration, which actually returns the output from the configuration. Eg: It should be 'weatherInfo' which is the var-def name in the configuration.

In this example, we have used Grouped By Element, Row Name and Row namespace as follows.

Click the Add New Output Mapping button as shown in the screenshot above to create how the output looks like. Once you have entered the output mapping details, click Main Configuration and then the Save button as follows:

Once the query details are added click Save.You have added one query to your data service configuration. To continue, click Next.

7. The Operations page appears. Click the Add new operation link to create an operation. Select a query to be executed when this operation is called.

Click Save once done. For example,

8. The Data Service configuration is done. Click Finish. (You can continue to add resources by clicking the Next button if you like)

9. You will be navigated to the "Deployed services" page.

From here, you can manage your service.

  • No labels