CloseMetabaseLink

Syntax

bool CloseMetabaseLink(OdId tOb)

Parameters

tOb. Moniker of opened repository connection instance.

Description

The CloseMetabaseLink operation closes opened repository connection instance.

Comments

To execute the operation, in the tOb field specify moniker of repository connection instance to be closed. The operation results in the logical True if the object was closed successfully.

Example

The example of closing repository connection instance. The request contains moniker of opened repository connection instance. The response contains whether closing was successful.

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

SOAP response:

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

JSON request:

{
"CloseMetabaseLink" :
{
"tOb" :
{
"id" : "S1!M!S!ML7"
}
}
}

JSON response:

{
"CloseMetabaseLinkResult" : "1"
}
public static bool CloseMetabaseLink(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseMetabaseLink()
{
tOb = new OdId() { id = moniker }
};
//Close repository connection instance
var b = somClient.CloseMetabaseLink(tClose);
return b;
}

See also:

Working with Relational Objects of Repository