CloseCube

Syntax

bool CloseCube(CubeId tCube)

Parameters

tCube. Opened cube instance moniker.

Description

The CloseCube operation closes an opened cube instance and indicates whether the instance is closed successfully.

Comments

To execute the operation, in the tCube parameter specify moniker of the cube instance to be closed. The result of the operation is the logical true if the object was closed successfully.

Example

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

SOAP response:

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

JSON request:

{
"CloseCube" :
{
"tCube" :
{
"id" : "S1!M!S!C1"
}
}
}

JSON response:

{
"CloseCubeResult" : "1"
}
public static bool CloseCube(CubeId cube)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseCube()
{
tCube = cube
};
//Close cube instance
var b = somClient.CloseCube(tClose);
return b;
}

See also:

Working with Cubes