SemanticLayerGetPatterns

Syntax

SemanticLayerPatterns SemanticLayerGetPatterns(string mon, SemanticLayerPatterns tArg)

Parameters

mon. Moniker for working with preconfigured DBMS connection templates.

tArg. Operation execution parameters.

Description

The SemanticLayerGetPatterns operation gets a list of preconfigured DBMS connection templates.

Comments

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

If one specifies empty collection in the tArg.its field and the tArg.admin field is not defined, only general information is obtained for templates, that is, keys and names. If the admin field is added, DBMS connection settings stored in the templates are also obtained.

The operation results in the obtained preconfigured DBMS connection templates.

Example

Below is the example of getting a general list of preconfigured DBMS connection templates. The request contains moniker for working with preconfigured templates and empty collection of templates. The response contains keys and names of existing preconfigured templates.

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">
<SemanticLayerGetPatterns xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">KPACNCCOCDBDGOAEFDJDAIBAMJFFBCDEDJLPICPCMCFDIKCG!M!S!PLDNOFGCOCDBDGOAEMEKOCGKLAEFDMALEOIGKKCECKAAGLFHC!Patterns</mon>
<tArg xmlns="">
<its>
  <it />
  </its>
  </tArg>
  </SemanticLayerGetPatterns>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<SemanticLayerGetPatternsResult 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>
  <index>358187</index>
  <name>Warehouse</name>
  </it>
<it>
  <index>358291</index>
  <name>Services</name>
  </it>
<it>
  <index>358700</index>
  <name>DBServer connection</name>
  </it>
  </its>
  </SemanticLayerGetPatternsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"SemanticLayerGetPatterns" :
{
"mon" : "KPACNCCOCDBDGOAEFDJDAIBAMJFFBCDEDJLPICPCMCFDIKCG!M!S!PLDNOFGCOCDBDGOAEMEKOCGKLAEFDMALEOIGKKCECKAAGLFHC!Patterns",
"tArg" :
{
"its" :
{
"it" :
[
""
]
}
}
}
}

JSON response:

{
"SemanticLayerGetPatternsResult" :
{
"its" :
{
"it" :
[
{
"index" : "358187",
"name" : "Warehouse"
},
{
"index" : "358291",
"name" : "Services"
},
{
"index" : "358700",
"name" : "DBServer connection"
}
]
}
}
}
public static SemanticLayerPatterns SemanticLayerGetPatterns(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new SemanticLayerGetPatterns()
{
tArg = new SemanticLayerPatterns()
{
its = new SemanticLayerPatternArg[]
{
new SemanticLayerPatternArg()
}
},
// Moniker for working with preconfigured templates
mon = moniker + "!Patterns"
};
// Get list of preconfigured DBMS connection templates
var result = somClient.SemanticLayerGetPatterns(tGet);
return result;
}

See also:

Working with Data Models