CloseSegCont

Syntax

bool CloseSegCont(SegContId tSegCont)

Parameters

tSegCont. Segment container instance moniker.

Description

The CloseSegCont operation closes a segment container instance.

Comments

To execute the operation, in the tSegCont field specify moniker of segment container instance. The moniker can be obtained after executing the OpenSegCont operation.

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

Example

Below is the example of closing segment container. The request contains moniker of opened instance of segment container. 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">
<CloseSegCont xmlns="http://www.fsight.ru/PP.SOM.Som">
<tSegCont xmlns="">
  <id>FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNIKPLJBOCLDPFOAEJGOHDKFEFEEPOCLEFIAOPAACCEOBKNOG</id>
  </tSegCont>
  </CloseSegCont>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseSegCont" :
{
"tSegCont" :
{
"id" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNIKPLJBOCLDPFOAEJGOHDKFEFEEPOCLEFIAOPAACCEOBKNOG"
}
}
}

JSON response:

{
"CloseSegContResult" : "1"
}
public static bool CloseSegCont(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClose = new CloseSegCont()
{
tSegCont = new SegContId() { id = moniker }
};
// Close segment container instance
var b = somClient.CloseSegCont(tClose);
return b;
}

See also:

Working with Cubes