Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel3
minLevel3

About the sample

...

The Excel sample data service contains (ExcelSampleService), which we use for this demonstrations consists of two operations "getProducts" to list :

  • getProducts - Lists all the products that are manufactured in the company, each result record will contain "ID" and "Name" fields.

...

  •  
  • getProductClassifications - Lists all the products along with the classifications, which contains the two result records

...

  • , "Name" and "classification".

...

  • Note that this operation'

...

  • actual output has changed

...

  • to "product-Name" and "product-classification"

...

  • because of the xslt transformation.

See Data Services and Resources for a definition of data services and operations.

Building the sample

The sample data service, ExcelSampleService should be deployed using the instructions in Samples Setupsection.

Running the sample

The sample service can be run using the TryIt tool, which is bundled with the WSO2 Data Services Server, or a code-generated java client sample as discussed in the Data Services Clients section.

...

  1. Log in to the management console of your server and click List under Services in the navigator. The ExcelSampleService will be listed here.
  2. Click Try this service to open the TryIt tool.
  3. Select the relevant "getProductClassifications" operation and click Send to execute the command. You will get the product list in the response as shown below.