CloseMbUpdate

Syntax

bool CloseMbUpdate(MbUpdateId tMbUpdate)

Parameters

tMbUpdate. Moniker for working with repository update.

Description

The CloseMbUpdate operation closes the context to work with repository update.

Comments

To execute the operation, in the tMbUpdate field specify moniker for working with update.

The operation results in the logical True if the object was closed successfully, and server resources were released successfully.

Example

Below is the example of context closing to work with repository objects update. Moniker for working with update is sent in the query. 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">
<CloseMbUpdate xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMbUpdate xmlns="">
  <id>S1!M!S!MbUpd1</id>
  </tMbUpdate>
  </CloseMbUpdate>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseMbUpdate" :
{
"tMbUpdate" :
{
"id" : "S1!M!S!MbUpd1"
}
}
}

JSON response:

{
"CloseMbUpdateResult" : "1"
}
public static bool CloseUpdate(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseMbUpdate()
{
tMbUpdate = new MbUpdateId() { id = moniker }
};
//Close update
var result = somClient.CloseMbUpdate(tClose);
return result;
}

See also:

Operations for Working with Repository