Data service operations are written to invoke queries. Therefore, defining operations is the 4th step in the process of creating a data service. Follow the steps given below.
- Click Next to add a data source. Follow the instructions in Adding Datasources.
- Click Next to add a query to the data source. Follow the instructions in Writing Data Service Queries.
- Click Next to add an operation to invoke the queries.
- The Add Operation page appears. Provide a name for the operation and select the query to execute when the operation is invoked. For example,
Also, see enable streaming.
You can get a SOAP response instead of an HTTP 202 when invoking an IN-ONLY operation by setting the
returnRequestStatus attribute to
true in a dataservice operation. For example,
Handling Faulty Requests
A structured SOAP fault message will be returned for an incorrect invocation of the data service. For example, if you use an invalid value to invoke a data service that validates the length of the parameters, a SOAP fault with VALIDATION_ERROR code will be returned. A SOAP fault message is constructed as given in the following XML schema structure.