readDocument(int, String) method

This API returns the service document or the meta data document depending on the DocumentType and for the specified URLKey.

Syntax

public Object readDocument (
    int documentType,
    String URLKey
) throws CacheException

Parameters

Exceptions

Example 1


Try{

ILogger logger = new Logger();
ICache cache =new Cache(getApplicationContext(),logger);
IODataServiceDocument serviceDocumentObject = (IODataServiceDocument)cache.ReadDocument(documentType.ServiceDocument, serviceDocUrl);
IODataSchema metadata = (IODataSchema)cache.readDocument(documentType.MetaDocument, serviceDocUrl);

}
Catch(CacheException e){
}