CloseSeg

Syntax

bool CloseSeg(SegId tSeg)

Parameters

tSeg. Cube segment instance moniker.

Description

The CloseSeg operation closes a cube segment instance.

Comments

To execute the operation, in the tSeg field specify segment instance moniker. The moniker can be obtained after executing the OpenSeg operation.

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

Example

Below is the example of closing cube segment instance. The request contains moniker of opened segment instance. The response contains whether closing was 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">
<CloseSeg xmlns="http://www.fsight.ru/PP.SOM.Som">
<tSeg xmlns="">
  <id>FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNOKHLMBOCLDPFOAECLPBNGOGGLICIMAEJIEMIFKOCDIBJKCM</id>
  </tSeg>
  </CloseSeg>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseSeg" :
{
"tSeg" :
{
"id" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNOKHLMBOCLDPFOAECLPBNGOGGLICIMAEJIEMIFKOCDIBJKCM"
}
}
}

JSON response:

{
"CloseSegResult" : "1"
}
public static bool CloseSeg(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClose = new CloseSeg()
{
tSeg = new SegId() { id = moniker }
};
// Close cube segment
var b = somClient.CloseSeg(tClose);
return b;
}

See also:

Working with Cubes