CloseDim

Syntax

bool CloseDim(DmId tDim)

Parameters

tDim. Opened dictionary instance moniker.

Description

The CloseDim operation closes a dictionary.

Comments

To execute the operation, in the tDim parameter specify the moniker of the dictionary instance to be closed. The operation results in the logical True if the dictionary was closed successfully.

Example

Example of closing the dictionary instance. The request contains the dictionary moniker. The response contains whether 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">
<CloseDim xmlns="http://www.fsight.ru/PP.SOM.Som">
<tDim xmlns="">
  <id>S1!M!S!S1</id>
  </tDim>
  </CloseDim>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseDim" :
{
"tDim" :
{
"id" : "S1!M!S!S1"
}
}
}

JSON response:

{
"CloseDimResult" : "1"
}
public static bool CloseDimension(DmId dim)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseDim()
{
tDim = dim
};
//Close dictionary instance
var b = somClient.CloseDim(tClose);
return b;
}

See also:

Working with Dictionaries