GetMbUpdateRdsElements

Syntax

GetMbUpdateRdsElementsResult GetMbUpdateRdsElements(MbUpdateId tMbUpdate, GetMbUpdateRdsElementsArg tArg)

Parameters

tMbUpdate. Moniker for working with repository update.

tArg. Operation execution parameters.

Description

The GetMbUpdateRdsElements operation gets information about MDM dictionary elements added to update without the dictionary itself.

Comments

It is used during the work with MDM dictionaries and composite MDM dictionaries. To execute the operation, in the tMbUpdate field specify update moniker, and in the tArg field specify parameters of getting information about elements. The moniker can be obtained on executing the OpenMbUpdate operation.

The operation results in the collection of MDM dictionary elements added to update.

Example

Below is the example of getting information about MDM dictionary elements added to update. The request contains moniker for working with update, moniker of opened MDM dictionary instance, and the number of elements, information of which will be obtained. The response contains keys of the elements added to update.

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">
<GetMbUpdateRdsElements xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMbUpdate xmlns="">
  <id>KFOHMMHOOKDGGOAEBBCEBJODBGLAKMMEJINOJHEBHNNLKOBA!M!S!MbUpdHEDHKNHOOKDGGOAEOENMGFPFOPNBOBOEDLJHBBFFCGEPLEBD</id>
  </tMbUpdate>
<tArg xmlns="">
<rdsInfo>
<rds>
  <id>KFOHMMHOOKDGGOAEBBCEBJODBGLAKMMEJINOJHEBHNNLKOBA!M!S!NGACPINHOOKDGGOAEJMHOHAHAAKNNFOAEBLDIIDLOKCDKNJFE</id>
  </rds>
  </rdsInfo>
<range>
  <start>0</start>
  <count>10</count>
  </range>
  </tArg>
  </GetMbUpdateRdsElements>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetMbUpdateRdsElementsResult 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">
<its xmlns="">
<it>
  <key>1</key>
  </it>
<it>
  <key>2</key>
  </it>
<it>
  <key>3</key>
  </it>
  </its>
  </GetMbUpdateRdsElementsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetMbUpdateRdsElements" :
{
"tMbUpdate" :
{
"id" : "KFOHMMHOOKDGGOAEBBCEBJODBGLAKMMEJINOJHEBHNNLKOBA!M!S!MbUpdHEDHKNHOOKDGGOAEOENMGFPFOPNBOBOEDLJHBBFFCGEPLEBD"
},
"tArg" :
{
"rdsInfo" :
{
"rds" :
{
"id" : "KFOHMMHOOKDGGOAEBBCEBJODBGLAKMMEJINOJHEBHNNLKOBA!M!S!NGACPINHOOKDGGOAEJMHOHAHAAKNNFOAEBLDIIDLOKCDKNJFE"
}
},
"range" :
{
"start" : "0",
"count" : "10"
}
}
}
}

JSON response:

{
"GetMbUpdateRdsElementsResult" :
{
"its" :
{
"it" :
[
{
"key" : "1"
},
{
"key" : "2"
},
{
"key" : "3"
}
]
}
}
}
public static GetMbUpdateRdsElementsResult GetMbUpdateRdsElements(string updMon, string rdsMon)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetMbUpdateRdsElements()
{
tArg = new GetMbUpdateRdsElementsArg()
{
rdsInfo = new RdsUpdateInfo() { rds = new RdsId() { id = rdsMon } },
range = new ListRange() { start = 0, count = 10 }
},
tMbUpdate = new MbUpdateId() { id = updMon }
};
// Get information about MDM dictionary elements added to update
var tResult = somClient.GetMbUpdateRdsElements(tGet);
return tResult;
}

See also:

Working with MDM Dictionaries