Data Services Clients
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 Samples Setup.
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 client
   # ant secure_sample
4. Running the file service application sample client
  # ant file_service_app
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.