GetSemanticLayerSources

Syntax

SemanticLayerSources GetSemanticLayerSources(string mon, SemanticLayerSources tArg)

Parameters

mon. Moniker for working with data model sources.

tArg. Operation execution parameters.

Description

The GetSemanticLayerSources operation gets data model sources settings.

Comments

To execute the operation, in the mon field specify moniker of opened data model instance with the !Sources postfix and in the tArg field specify empty values or default values for the fields, which values should be obtained. The moniker can be obtained on executing the OpenSemanticLayer operation.

The operation results in the obtained data model sources settings.

Example

Below is the example of getting a general list of data model sources. The request contains moniker for working with sources and empty collection of sources. The response contains a list containing keys and names of data model sources.

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">
<GetSemanticLayerSources xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns=" ">LGKNEBJOALBDGOAEFGACCMDHGCIOGFIEGLGKDJFJGPOGPIHE!M!S!PNAAJNCJOALBDGOAEIJDIFGIHNEOBEMIEHIIKOKDEILMGLDPK!Sources</mon>
<tArg xmlns=" ">
<its>
<it>
  <k>-1</k>
  <id />
  <n />
  </it>
  </its>
  </tArg>
  </GetSemanticLayerSources>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetSemanticLayerSourcesResult 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">
<its xmlns=" ">
<it>
  <k>1</k>
  <n>Repository</n>
  </it>
  </its>
  </GetSemanticLayerSourcesResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
 "GetSemanticLayerSources" :
  {
   "mon" : "LGKNEBJOALBDGOAEFGACCMDHGCIOGFIEGLGKDJFJGPOGPIHE!M!S!PNAAJNCJOALBDGOAEIJDIFGIHNEOBEMIEHIIKOKDEILMGLDPK!Sources",
   "tArg" :
    {
     "its" :
      {
       "it" :
        [
          {
           "k" : "-1",
           "id" : "",
           "n" : ""
          }
        ]
      }
    }
  }
}

JSON response:

{
 "GetSemanticLayerSourcesResult" :
  {
   "its" :
    {
     "it" :
      [
        {
         "k" : "1",
         "n" : "Repository"
        }
      ]
    }
  }
}
public static SemanticLayerSources GetSemanticLayerSources(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetSemanticLayerSources()
{
tArg = new SemanticLayerSources()
{
its = new SemanticLayerSource[]
{
new SemanticLayerSource()
{
id = string.Empty,
n = string.Empty,
k = uint.MaxValue
}
}
},
// Moniker of opened data model instance
mon = moniker + "!Sources"
};
// Get information about data model sources
var result = somClient.GetSemanticLayerSources(tGet);
return result;
}

See also:

Working with Data Models