GetDocument |
This Web service operation is used to fetch the details of a document including the metadata properties and the document. This Web service operation is part of the Document Store Web service interface in the Repository service group. When the URL of a specific document within the repository is provided to the SOAP request, the details of that document are returned as the response, and the document is downloaded to the location: <Process_Platform_Installation_Directory> /content/downloadcontent.
SOAP Request
<ns:GetDocument> <!-- Complete path to the document starting from document root --> <ns:DocumentURL fetchContent="true/false"></ns:DocumentURL> <Version> <!--type: integer --> <MajorVersion>majorVersionNumber</MajorVersion> <!--type: integer --> <MinorVersion>minorVersionNumber</MinorVersion> </Version> <!--type: string --> <FetchSetting>[default/inline/file]</FetchSetting> </ns:GetDocument>
Request Parameters
Parameter |
Description |
---|---|
DocumentURL |
Complete path to the document starting from the document root and separated by a forward slash (/).
|
Version | Major and minor version of the document. This is applicable only if the repository is OpenText Content Server (OTCS).
|
FetchSetting |
The way you want to retrieve the document. Supports one of the three values: inline, file, or default.
|
SOAP Response
<ns:GetDocumentResponse> <!--type: string--> <ns:DocumentName>documentname</ns:DocumentName> <ns:DocumentContent isLocation="true/false"/> <ns:Folder>folder path</ns:Folder> <ns:Properties> <!--type: string--> <ns:MimeType>html</ns:MimeType> <!-- Optional --> <!-- This comes only when it is configured for CMIS or Archive Center--> <CmisType>CMIS type of the document</CmisType> > optional element that appears in the response when used with CMIS <!--type: dateTime--> <ns:LastModified>2009-05-16T18:12:28</ns:LastModified> <VersionInfo> <Version> <!--type: integer --> <MajorVersion>majorVersionNumber</MajorVersion> <!--type: integer --> <MinorVersion>minorVersionNumber</MinorVersion> <!--type: integer --> <LatestVersionNumber>latestVersionNumber</LatestVersionNumber> <LockInfo isLocked="true/false" /> </Version> </VersionInfo> <!--Zero or more repetitions:--> <ns:Property> <!--type: string--> <ns:Name>some string name</ns:Name> <!--type: string--> <ns:Value>some string value</ns:Value> <!-- Optional --> <ns:CategoryID>category id in CS</ns:CategoryID> </ns:Property> </ns:Properties> </ns:GetDocumentResponse>
Response Parameters
Parameter |
Description |
---|---|
DocumentName |
The name of the document. |
DocumentContent |
Note: The creation and retrieval of the document with the document content as inline text in the SOAP request or response has been deprecated. Consumers must leverage the streaming option for optimal performance and resource consumption. |
Folder |
The folder location of the document. |
Properties |
The document can contain the following set of properties:
|
Property | Each property corresponds to one property name and its value attached to this document. |