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, in the tMb field specify repository connection moniker within which the work with update is executed, and in the tArg.metaGet field specify the pattern to get information about update. The operation results in the moniker that will be used to set up update, and the requested information about update.

Further work is executed using 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