CloseSemanticLayer

Syntax

bool CloseSemanticLayer(string mon)

Parameters

mon. Opened data model instance moniker.

Description

The CloseSemanticLayer operation closes data model instance.

Comments

To execute the operation, in the mon field specify moniker of opened data model instance. The moniker can be obtained on executing the OpenSemanticLayer operation.

The operation results in the logical true if data model instance was closed successfully.

Example

Below is the example of closing data model instance. The request contains moniker of opened data model instance. 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">
<CloseSemanticLayer xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">ECLILKDCBLBDGOAEDKMFIAIDMENFPGPEHLJFNFCLBKCMGDDH!M!S!PODOLOLDCBLBDGOAEEKPLOFLBDLFCJDAEHINMBHIMJKOIAJPE</mon>
  </CloseSemanticLayer>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseSemanticLayer" :
{
"mon" : "ECLILKDCBLBDGOAEDKMFIAIDMENFPGPEHLJFNFCLBKCMGDDH!M!S!PODOLOLDCBLBDGOAEEKPLOFLBDLFCJDAEHINMBHIMJKOIAJPE"
}
}

JSON response:

{
"CloseSemanticLayerResult" : "1"
}
public static bool CloseSemanticLayer(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClose = new CloseSemanticLayer()
{
mon = moniker
};
// Close data model instance
var b = somClient.CloseSemanticLayer(tClose);
return b;
}

See also:

Working with Data Models