CloseCompoundDictionarySource

Syntax

bool CloseCompoundDictionarySource(RdsId id)

Parameters

id. Moniker of composite MDM dictionary data source.

Description

The CloseCompoundDictionarySource operation closes composite MDM dictionary data source.

Comments

To execute the operation, in the id field specify moniker of composite MDM dictionary data source. The moniker can be obtained on executing the CreateCompoundDictionarySource, OpenCompoundDictionarySource operation.

The operation results in the logical true if the data source was closed successfully.

Example

Below is the example of closing composite MDM dictionary data source. The request contains data source moniker. The response contains whether closing is 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">
<CloseCompoundDictionarySource xmlns="http://www.fsight.ru/PP.SOM.Som">
<id xmlns="">
  <id>LFDCEOAJELGFGOAEOHNCJJKKEAEKGGDECKEPMBLACNIPJPNG!M!S!NONBODBBJELGFGOAELOJMHDMDOIMJJHKEJIFCPPBNLHMBJEEO!Sources!2</id>
  </id>
  </CloseCompoundDictionarySource>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseCompoundDictionarySource" :
{
"id" :
{
"id" : "LFDCEOAJELGFGOAEOHNCJJKKEAEKGGDECKEPMBLACNIPJPNG!M!S!NONBODBBJELGFGOAELOJMHDMDOIMJJHKEJIFCPPBNLHMBJEEO!Sources!2"
}
}
}

JSON response:

{
"CloseCompoundDictionarySourceResult" : "1"
}
public static bool CloseCompoundDictionarySource(string sourceMoniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClose = new CloseCompoundDictionarySource()
{
id = new RdsId() { id = sourceMoniker }
};
// Close composite MDM dictionary data source
var tResult = somClient.CloseCompoundDictionarySource(tClose);
return tResult;
}

See also:

Working with MDM Dictionaries