SaveCompoundDictionarySource

Syntax

bool SaveCompoundDictionarySource(RdsId id)

Parameters

id. Moniker of composite MDM dictionary data source.

Description

The SaveCompoundDictionarySource operation saves settings of 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 changes were successfully saved.

Example

Below is the example of saving composite MDM dictionary data source. The request contains data source moniker. The response contains whether changes are successfully saved.

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">
<SaveCompoundDictionarySource xmlns="http://www.fsight.ru/PP.SOM.Som">
<id xmlns="">
  <id>LFDCEOAJELGFGOAEOHNCJJKKEAEKGGDECKEPMBLACNIPJPNG!M!S!NONBODBBJELGFGOAELOJMHDMDOIMJJHKEJIFCPPBNLHMBJEEO!Sources!2</id>
  </id>
  </SaveCompoundDictionarySource>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

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

JSON response:

{
"SaveCompoundDictionarySourceResult" : "1"
}
public static bool SaveCompoundDictionarySource(string sourceMoniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSave = new SaveCompoundDictionarySource()
{
id = new RdsId() { id = sourceMoniker }
};
// Save changes in composite MDM dictionary data source
var tResult = somClient.SaveCompoundDictionarySource(tSave);
return tResult;
}

See also:

Working with MDM Dictionaries