Action: GetLocalName

Purpose: Returns the LocalName property of a specified Element. If a TagName is prefixed (eg <ewd:myTag>), the LocalName is the part of the name that follows the colon (:) (eg myTag). If the TagName is not prefixed, this Action returns the TagName.

See also: GetPrefix

Action-specific name/value pairs:

Parameter Name Description
ElementOID The OID of the Element whose LocalName 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:

{ElementOID:"1-4"}

Example Request

Action=GetLocalName
&ElementOID=1-4
&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=GetLocalName
&JSON=%7BElementOID%3A%221-4%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'?>
<GetLocalNameResponse xmlns="http://mdbx.mgateway.com/doc/2009-06-05/">
   <GetLocalNameResult>
      <LocalName>
         myTag
      </LocalName>
   </GetLocalNameResult>
</GetLocalNameResponse>

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

{LocalName:"myTag"}