CloseRdsDatabase

Syntax

bool CloseRdsDatabase(RdsDbId tRdsDb)

Parameters

tRdsDb. Moniker of opened MDM repository instance.

Description

The CloseRdsDatabase operation closes MDM repository instance.

Comments

To execute the operation, in the tRdsDb field specify moniker of the MDM repository instance to be closed. The moniker can be obtained on executing the OpenRdsDatabase operation. The operation results in the logical True if the object was closed successfully.

Example

Below is the example of closing MDM repository instance. The request contains moniker of opened MDM repository, the response contains whether MDM repository is closed successfully.

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">
<CloseRdsDatabase xmlns="http://www.fsight.ru/PP.SOM.Som">
<tRdsDb xmlns="">
  <id>S1!M!S!RD1</id>
  </tRdsDb>
  </CloseRdsDatabase>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <CloseRdsDatabaseResult 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">1</CloseRdsDatabaseResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"CloseRdsDatabase" :
{
"tRdsDb" :
{
"id" : "S1!M!S!RD1"
}
}
}

JSON response:

{
"CloseRdsDatabaseResult" : "1"
}
public static bool CloseRDSDatabase(RdsDbId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseRdsDatabase()
{
tRdsDb = moniker
};
//Close repository connection instance
var b = somClient.CloseRdsDatabase(tClose);
return b;
}

See also:

Working with MDM Dictionaries