CloseHie

Syntax

bool CloseHie(HieId tHie)

Parameters

tHie. Moniker of the indicators hierarchy that must be closed.

Description

The CloseHie operation closes a hierarchy of time series database indicators.

Comments

To execute the operation, specify hierarchy moniker in the tHie parameter. The moniker can be obtained on executing the OpenHie operation. The operation results in the logical True if the object was closed successfully.

Example

Below is the example of closing time series database indicators hierarchy. The request contains hierarchy moniker. 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">
<CloseHie xmlns="http://www.fsight.ru/PP.SOM.Som">
<tHie xmlns="">
  <id>S1!M!S!H2</id>
  </tHie>
  </CloseHie>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseHie" :
{
"tHie" :
{
"id" : "S1!M!S!H2"
}
}
}

JSON response:

{
"CloseHieResult" : "1"
}
public static bool CloseHierarhy(HieId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseHie()
{
tHie = moniker
};
//Close indicators hierarchy instance
var b = somClient.CloseHie(tClose);
return b;
}

See also:

Working with Time Series Database