You can use data services to provide data to your UI from external SQL and web services data sources.
To use external data sources in your UI, you create one of two types of service requests described in the following table:
|
Service Request Type |
Description |
|
serviceRequest |
Specifies the serviceRequest on the server. Uses a dataRequestDefinition specified on the server-side to access enterprise data. Use to:
|
|
embeddedServiceRequest |
Specifies the serviceRequest on the client. Specifies the complete syntax of the request in the client UI. Use to:
Note: You cannot use pre- and post-processors with an embeddedServiceRequest. To use pre- and post-processors, create a serviceRequest. |
You can provide data to your application UI from external data sources using SQL or web services external data sources.
You construct external data sources differently for SQL or web services external data.
For SQL external data sources you create:
A database connection
An SQL statement and a serviceRequest, or
An SQL statement as part of an embeddedServiceRequest.
For web services external data sources you create:
A restRequest or a soapRequest and a serviceRequest, or
A restRequest or a soapRequest as part of an embeddedServiceRequest.