Below is the example of using the GetStatus 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.
{ "GetStatus" : { "tArg" : { "metabase" : { "id" : "S1!M" } } } }
{ "GetStatusResult" : { "version" : "Release 9.2.24679.73 [Unicode]", "release" : "9.2", "metabaseSessionTimeout" : "02:46:40.000", "metabaseStoreBinaryCount" : "3", "metabaseLocale" : "1049", "metabaseConnectionPoolMaxCount" : "10", "platformInfo" : "x64" } }
The CheckStatus function specified below gets information about web service version. If the input parameter value is specified, the repository connection parameters must be obtained as well. The result of the operation is the result of the function.
public static GetStatusResult CheckStatus(string mb = null)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tStatus = new GetStatus()
{
tArg = new GetStatusArg()
{
metabase = (mb != null ? new MbId() { id = mb } : null )
}
};
//Get information about web service
var result = somClient.GetStatus(tStatus);
return result;
}
See also: