Getting Information about Repository Connection

Below is the example of using the GetSystemInfo operation to get information about repository connection. The request contains the repository connection moniker. The response contains information about platform version that is installed in the server and settings of the specified repository connection.

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">
<GetSystemInfo xmlns="http://www.fsight.ru/PP.SOM.Som">
<tArg xmlns="">
<metabase>
  <id>LLCHGEDPNCCCGOAEHNAGCAHDLNEBJEHEMLCCONMKIJBCOLEH!M</id>
  </metabase>
  <allowMetabaseNotFound>true</allowMetabaseNotFound>
  </tArg>
  </GetSystemInfo>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetSystemInfoResult 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">
  <version xmlns="">Release 10.4.10052.0 Master x64</version>
  <release xmlns="">10.4</release>
  <platformInfo xmlns="">x64</platformInfo>
  <osType xmlns="">Windows</osType>
  <osInfo xmlns="">Windows 10 x64</osInfo>
  <metabaseSessionTimeout xmlns="">00:30:00.000</metabaseSessionTimeout>
  <metabaseStoreBinaryCount xmlns="">0</metabaseStoreBinaryCount>
  <metabaseLocale xmlns="">1049</metabaseLocale>
  <metabaseConnectionPoolMaxCount xmlns="">50</metabaseConnectionPoolMaxCount>
  </GetSystemInfoResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetSystemInfo" :
{
"tArg" :
{
"metabase" :
{
"id" : "LLCHGEDPNCCCGOAEHNAGCAHDLNEBJEHEMLCCONMKIJBCOLEH!M"
},
"allowMetabaseNotFound" : "true"
}
}
}

JSON response:

{
"GetSystemInfoResult" :
{
"version" : "Release 10.4.10052.0 Master x64",
"release" : "10.4",
"platformInfo" : "x64",
"osType" : "Windows",
"osInfo" : "Windows 10 x64",
"metabaseSessionTimeout" : "00:30:00.000",
"metabaseStoreBinaryCount" : "0",
"metabaseLocale" : "1049",
"metabaseConnectionPoolMaxCount" : "50"
}
}
public static GetSystemInfoResult GetConnectedInfo(string mb = null)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetSystemInfo()
{
tArg = new GetSystemInfoArg()
{
metabase = (mb != null ? new MbId() { id = mb } : null ),
allowMetabaseNotFound = true
}
};
// Get connection information
var result = somClient.GetSystemInfo(tGet);
return result;
}

See also:

GetSystemInfo: Operation