Action: GetDocumentName

Purpose: Returns the DocumentName property of a specified DOM. If you know the DocumentOID, use this Action to retrieve the DocumentName.

Action-specific name/value pairs:

Parameter Name Description
DocumentOID The OID of the document whose DocumentName property is to be retrieved.

Alternatively, the parameters above can be incorporated into a single JSON string and specified using the parameter name JSON, eg:

{DocumentOID:"1-1"}

Example Request

Action=GetDocumentName
&DocumentOID=1-1
&MDBAccessKeyId=[your access key id]
&Signature=[computed signature]
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Timestamp=2009-06-14T13%3A19%3A41
&Version=2009-04-15
&db=mdbx

or:

Action=GetDocumentElement
&JSON=%7BDocumentOID%3A%221-1%22%7D
&MDBAccessKeyId=[your access key id]
&OutputFormat=JSON
&Signature=[computed signature]
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Timestamp=2009-06-14T13%3A19%3A41
&Version=2009-04-15
&db=mdbx

Example Response

XML

<?xml version='1.0'?>
<GetDocumentNameResponse xmlns="http://mdbx.mgateway.com/doc/2009-06-05/">
   <GetDocumentNameResult>
      <DocumentName>
         MDBXTest
      </DocumentName>
   </GetDocumentNameResult>
</GetDocumentNameResponse>

JSON (ie if OutputFormat=JSON specified in the Request)

{DocumentName:"MDBXTest"}