SemanticLayerSources GetSemanticLayerSources(string mon, SemanticLayerSources tArg)
mon. Moniker for working with data model sources.
tArg. Operation execution parameters.
The GetSemanticLayerSources operation gets data model sources settings.
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.
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.
{
"GetSemanticLayerSources" :
{
"mon" : "LGKNEBJOALBDGOAEFGACCMDHGCIOGFIEGLGKDJFJGPOGPIHE!M!S!PNAAJNCJOALBDGOAEIJDIFGIHNEOBEMIEHIIKOKDEILMGLDPK!Sources",
"tArg" :
{
"its" :
{
"it" :
[
{
"k" : "-1",
"id" : "",
"n" : ""
}
]
}
}
}
}
{
"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: