services property
- Last Updated: April 9, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Returns an array of objects that identifies the Data Object Services that have been loaded
for the current JSDOSession object and its web
application.
Data type: Array of Object
Access: Read-only
Applies to: progress.data.JSDOSession class
You load Data Object Services for a JSDOSession object by loading the corresponding Data Service Catalogs using the
object's addCatalog( ) method. You can load these Catalogs
either before or after you log into a web application using the object's login( ) method.
Each object in the array returned by this session property contains two properties:
-
name— The name of a Data Object Service that is loaded for the specified session. -
uri— The URI for the service. If the address of the service in the Catalog is an absolute URI, this value is that URI. If the service address is relative, this value is the relative address concatenated to the value of theJSDOSessionobject'sserviceURIproperty, which contains the web application URI used vy theJSDOSession.
catalogURIs property.Example
Given two Catalogs, CustomerSvc.json and ItemSvc.json, that specify their services this way:
-
"CustomerSvc"service with this URI:"/rest/CustomerSvc" -
"ItemSvc"service with this URI:"http://itemhost:8080/SportsApp/rest/ItemSvc"
The following code fragment produces the output that follows:
|
Output from the preceding code fragment:
|
See also:
addCatalog( ) method (JSDOSession class), catalogURIs property, login( ) method (JSDOSession class), serviceURI property