The 'Data Service Hosting' feature provides capability to support batch requests for operations, which contain multiple parameter sets for a single request. When a data service is created with the batch request mode set, for all the in-only operations (operations which do not have any return value), a corresponding batch operation is also be automatically created. This batch operation takes in an array of parameters, compared to the single parameter list the non-batch operations require.
In order to make an operation supporting batch requests, you first need to enable batch request functionality. Follow the instructions to enable batch request support in data services.
1. Log on to the product's management console and select "Data Service -> Create" under the "Main" menu.
2. The Create Data Service page appears. Fill in the fields.
The Data Service name is mandatory. Tick the Enable Batch Requests check box. For example,
3. Continue to add a data source, query and an operation to your data service. The following figures show a sample query and operation added.
Adding the Query:
Adding the Operation: