This is the WSO2 Data Services Server documentation version 2.6.3

Data Services Clients

This sample demonstrates the usage of code-generated clients when used with data-services. The service stubs are created using WSDL2Java tool, which is used by the data service clients.

The sample data services are deployed using the instructions in Deploying Samples section.

Running the Clients

There are separate ant tasks for all the samples as follows.

  • 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 which 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.

Follow the instructions below to run the clients:

1. Switch to data service clients sample directory.

    e.g. # cd CARBON_HOME/samples/clients

2. Running all the generic clients (rdbms, csv, excel, gspread, batch_request)

    # ant

3. Run the secure sample sample client

    # ant batch_request

4. Running the file service application sample client

   # ant file_service_app

Note:

Any of the samples can be run individually using the "ant" command followed by the task name. e.g. "ant rdbms"

For an explanation of the output of each service refer to its respective sample pages.