GetRdsDatabase

Syntax

GetRdsDatabaseResult GetRdsDatabase(RdsDbId tRdsDb, GetRdsDatabaseArg tArg)

Parameters

tRdsDb. Moniker of opened MDM repository instance.

tArg. Operation execution parameters.

Description

The GetRdsDatabase operation gets MDM repository metadata.

Comments

To execute the operation, in the tRdsDb field specify MDM repository instance moniker, and in the tArg.pattern field specify the pattern that will be used to get metadata. The moniker can be obtained on executing the OpenRdsDatabase operation. The operation results in the requested metadata.

Example

Below is the example of getting MDM repository metadata. The request contains moniker of opened MDM repository instance and the pattern specifying whether all metadata should be obtained. The response contains the obtained information.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetRdsDatabase xmlns="http://www.fsight.ru/PP.SOM.Som">
<tRdsDb xmlns="">
  <id>S1!M!S!RD1</id>
  </tRdsDb>
<tArg xmlns="">
<pattern>
  <obInst>true</obInst>
  <all>true</all>
  </pattern>
  </tArg>
  </GetRdsDatabase>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetRdsDatabaseResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<id xmlns="">
  <id>S1!M!S!RD1</id>
  </id>
<meta xmlns="">
<obInst>
<obDesc ds="" isShortcut="0" isLink="0" ver="2" hf="0">
  <i>RDS_DATABASE</i>
  <n>MDM repository</n>
  <k>219759</k>
  <c>4353</c>
  <p>5610</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  <isPermanent>1</isPermanent>
  <isTemp>0</isTemp>
  </obDesc>
  </obInst>
  <dirty>0</dirty>
<db ds="" isShortcut="0" isLink="0" ver="2" hf="0">
  <i>DB</i>
  <n>Database</n>
  <k>56</k>
  <c>513</c>
  <p>12363</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  </db>
  </meta>
  </GetRdsDatabaseResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetRdsDatabase" :
{
"tRdsDb" :
{
"id" : "S1!M!S!RD1"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"all" : "true"
}
}
}
}

JSON response:

{
"GetRdsDatabaseResult" :
{
"id" :
{
"id" : "S1!M!S!RD1"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "2",
"@hf" : "0",
"i" : "RDS_DATABASE",
"n" : "MDM repository",
"k" : "219759",
"c" : "4353",
"p" : "5610",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
}
},
"dirty" : "0",
"db" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "2",
"@hf" : "0",
"i" : "DB",
"n" : "Database",
"k" : "56",
"c" : "513",
"p" : "12363",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
}
}
}
}
public static GetRdsDatabaseResult GetRDSDBMetadata(RdsDbId moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
//Operation execution parameters
var tGet = new GetRdsDatabase()
{
tArg = new GetRdsDatabaseArg()
{
pattern = new RdsDatabaseMdPattern()
{
all = true
}
},
tRdsDb = moniker
};
// Get MDM repository metadata
var tResult = somClient.GetRdsDatabase(tGet);
return tResult;
}

See also:

Working with MDM Dictionaries