CloseCustomOb

Syntax

bool CloseCustomOb(CustomObId tCustomOb)

Parameters

tCustomOb. Moniker of opened custom class object instance.

Description

The CloseCustomOb operation closes a custom class object instance.

Comments

To execute the operation, in the tCustomOb field specify moniker of opened custom class object instance. The moniker can be obtained on executing the OpenCustomOb operation.

The operation results in the logical True if the object instance was closed successfully.

Example

The example of closing a custom class object. The request contains object moniker. The response contains whether the closing is successful.

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">
<CloseCustomOb xmlns="http://www.fsight.ru/PP.SOM.Som">
<tCustomOb xmlns="">
  <id>LDPFDGAHAHHCGOAEBAFLLHKHMOALEEDEMKDKCJAAKNELDHAE!M!S!TGHNHGJAHAHHCGOAENBPOBGJCGMEKKAFEILDEOPPCHPKFAHNO</id>
  </tCustomOb>
  </CloseCustomOb>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseCustomOb" :
{
"tCustomOb" :
{
"id" : "LDPFDGAHAHHCGOAEBAFLLHKHMOALEEDEMKDKCJAAKNELDHAE!M!S!TGHNHGJAHAHHCGOAENBPOBGJCGMEKKAFEILDEOPPCHPKFAHNO"
}
}
}

JSON response:

{
"CloseCustomObResult" : "1"
}
public static bool CloseCustom(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClose = new CloseCustomOb()
{
tCustomOb = new CustomObId() { id = moniker }
};
// Close custom class object instance
var tResult = somClient.CloseCustomOb(tClose);
return tResult;
}

See also:

Common Operations