Installing Update Unit

See below the example of using the SetMbUpdate operation to set update unit in the update. The unit must be previously added to update elements tree. The query sends update moniker and element key in the tree that corresponds update unit. No additional information is returned in the response.

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">
<SetMbUpdate xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMbUpdate xmlns="">
  <id>S1!M!S!MbUpd1</id>
  </tMbUpdate>
<tArg xmlns="">
  <pattern />
<meta>
<eventsNode>
  <k>2</k>
  </eventsNode>
  </meta>
  </tArg>
  </SetMbUpdate>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<SetMbUpdateResult 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">
<id xmlns="">
  <id>S1!M!S!MbUpd1</id>
  </id>
  </SetMbUpdateResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"SetMbUpdate" :
{
"tMbUpdate" :
{
"id" : "S1!M!S!MbUpd1"
},
"tArg" :
{
"pattern" : "",
"meta" :
{
"eventsNode" :
{
"k" : "2"
}
}
}
}
}

JSON response:

{
"SetMbUpdateResult" :
{
"id" :
{
"id" : "S1!M!S!MbUpd1"
}
}
}
public static SetMbUpdateResult SetEventsNode(string moniker, ulong nodeKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tSet = new SetMbUpdate()
{
tArg = new SetMbUpdateArg()
{
pattern = new MbUpdateMdPattern() {},
meta = new MbUpdateMd()
{
eventsNode = new MbUpdateNode() { k = nodeKey }
},
},
tMbUpdate = new MbUpdateId() { id = moniker }
};
//Install update unit
var result = somClient.SetMbUpdate(tSet);
return result;
}

See also:

SetMbUpdate