OpenMbUpdate

Syntax

OpenMbUpdateResult OpenMbUpdate(MbId tMb, OpenMbUpdateArg tArg)

Parameters

tMb. Moniker of repository connection, inside which the work with update is executed.

tArg. Operation execution parameters.

Description

The OpenMbUpdate operation opens the context to work with repository update.

Comments

To execute operation, specify in the tMb field repository connection moniker inside which the work with update is executed and in the tArg.metaGet field the template of getting information about update.The operation work result will be a moniker that will be used for update setting and the requested information about update.

Further work is executed with the GetMbUpdate and SetMbUpdate operations.

To close the update, use the CloseMbUpdate operation.

Example

See below the example of context opening to work with repository objects update.The request contains repository connection moniker. Moniker for working with the update is received 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">
<OpenMbUpdate xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMb xmlns="">
  <id>S1!M</id>
  </tMb>
  <tArg xmlns="" />
  </OpenMbUpdate>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"OpenMbUpdate" :
{
"tMb" :
{
"id" : "S1!M"
},
"tArg" : ""
}
}

JSON response:

{
"OpenMbUpdateResult" :
{
"id" :
{
"id" : "S1!M!S!MbUpd1"
}
}
}
public static OpenMbUpdateResult OpenUpdate(string mb)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOpen = new OpenMbUpdate()
{
tArg = new OpenMbUpdateArg(),
tMb = new MbId() { id = mb }
};
//Open update
var result = somClient.OpenMbUpdate(tOpen);
return result;
}

See also:

Operations for Working with Repository