Files in the sample external data service
You can use the sample service as an example and as a starting point for your own external data service. The sample service consists of a GetObjectTypes servlet, an UpdateObjectTypes servlet, the object types resource JSON file, JSON files as the data source, and the web.xml deployment file.
The sample service consists of the following files:
- GetObjectTypesServlet.java servlet
- This servlet gets the list of all classes to handle in the external data service.
- UpdateObjectTypeServlet.java servlet
- For each class, this servlet gets the current attributes or values and returns that information in the response payload.
- ObjectTypes.json file
- This JSON file determines which classes you are using for the external data service.
- JSON files as the data source
- These JSON files are the external data sources for the sample
EDS, and can be used to understand the required format of the JSON.
The ECMClient_installdir\samples\sampleEDSService\WEB-INF\classes directory
contains the following sample JSON data source files:
- Article
- Book
- Document
- Folder
- Invoice
- NOINDEX
- DefaultApplication*
- Data_Field_*
- web.xml file
- The web.xml file provides configuration and deployment information for the web application. This file must reside in the WEB-INF directory under the context of the hierarchy of directories that exist for the external data service.