OpenMbCheckSum

Syntax

OpenMbCheckSumResult OpenMbCheckSum(MbId tMb, OpenMbCheckSumArg tArg)

Parameters

tMb. Repository connection moniker, which implements working with checksums.

tArg. Operation execution parameters.

Description

The OpenMbCheckSum operation opens context for working with checksums.

Comments

To execute the operation, in the tMb field specify repository connection moniker, and in the tArg field specify empty value. The operation results in the moniker for working with checksums. Further work is executed using the GetMbCheckSum and SetMbCheckSum operations. To close the context for working with checksums, use the CloseMbCheckSum operation.

Example

Below is the example of opening context for working with checksums. The request contains repository connection moniker. The response contains moniker for working with checksums.

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">
<OpenMbCheckSum xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMb xmlns="">
  <id>S1!M</id>
  </tMb>
  <tArg xmlns="" />
  </OpenMbCheckSum>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

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

JSON response:

{
"OpenMbCheckSumResult" :
{
"id" :
{
"id" : "S1!M!S!MbCheckSum1"
}
}
}
public static OpenMbCheckSumResult OpenCheckSum(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOp = new OpenMbCheckSum()
{
tMb = new MbId() { id = moniker },
tArg = new OpenMbCheckSumArg()
};
// Open context for working with checksums
var result = somClient.OpenMbCheckSum(tOp);
return result;
}

See also:

Operations for Working with Repository