This documentation is for WSO2 Data Services Server 3.1.0. View the home page of the latest release.

Unknown macro: {next_previous_link3}
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 8 Current »

Introduction

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

Building the sample

Deploy the sample data services using the steps given in   Deploying Samples .

Executing the sample

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

  • No labels