GetStatus

Syntax

GetStatusResult GetStatus(GetStatusArg tArg)

Parameters

tArg. Operation execution parameters.

Description

The GetStatus operation checks repository connection status.

Comments

To execute the operation, in the tArg.metabase field specify moniker of the connection, which status should be checked.

The operation returns True if the connection exists, and False if the connection is interrupted for some reason.

Example

Below is the example of checking repository connection status. The request contains connection moniker. The response contains whether there is the specified 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">
<GetStatus xmlns="http://www.fsight.ru/PP.SOM.Som">
<tArg xmlns="">
<metabase>
  <id>LFOIPCCFOCCCGOAEOPOCGIPCMLLLDJFELKPAEPFJLNBLBMNK!M</id>
  </metabase>
  </tArg>
  </GetStatus>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <GetStatusResult 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">1</GetStatusResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetStatus" :
{
"tArg" :
{
"metabase" :
{
"id" : "LFOIPCCFOCCCGOAEOPOCGIPCMLLLDJFELKPAEPFJLNBLBMNK!M"
}
}
}
}

JSON response:

{
"GetStatusResult" : "1"
}
public static bool CheckStatus(string mb)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetStatus()
{
tArg = new GetStatusArg()
{
metabase = new MbId() { id = mb }
}
};
// Check repository connection status
var result = somClient.GetStatus(tGet);
return result;
}

See also:

Common Operations