CloseMbCheckSum

Syntax

bool CloseMbCheckSum(MbCheckSumId tMbCheckSum)

Parameters

tMbCheckSum. Moniker for working with checksums.

Description

The CloseMbCheckSum operation closes context for working with checksums.

Comments

To execute the operation, in the tMbCheckSum field specify moniker for working with checksums. The moniker can be obtained on executing the OpenMbCheckSum operation. The operation results in the logical True if the object was closed successfully.

Example

Below is the example of closing the context for working with checksums. The request contains moniker for working with checksums. The response contains whether the context is successfully closed.

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

SOAP response:

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

JSON request:

{
"CloseMbCheckSum" :
{
"tMbCheckSum" :
{
"id" : "S1!M!S!MbCheckSum2"
}
}
}

JSON response:

{
"CloseMbCheckSumResult" : "1"
}
public static bool CloseCheckSum(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseMbCheckSum()
{
tMbCheckSum = new MbCheckSumId() { id = moniker }
};
// Close context for working with checksums
var result = somClient.CloseMbCheckSum(tClose);
return result;
}

See also:

Operations for Working with Repository