Getting List of Repository Connections

Below is the example of using the OpenAuditLog operation to open the access protocol with the list of repository connections. The request contains moniker of opened repository connection. The response contains the access protocol instance moniker with the list of repository connections.

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">
<OpenAuditLog xmlns="http://www.prognoz.ru/PP.SOM.Som">
<tMb xmlns=" ">
  <id>S1!M</id>
  </tMb>
<tArg xmlns=" ">
  <logType>Logons</logType>
  </tArg>
  </OpenAuditLog>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<OpenAuditLogResult xmlns="http://www.prognoz.ru/PP.SOM.Som" xmlns:q1="http://www.prognoz.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <id xmlns=" ">S1!M!S!A1</id>
  </OpenAuditLogResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"OpenAuditLog" :
{
"tMb" :
{
"id" : "S1!M"
},
"tArg" :
{
"logType" : "Logons"
}
}
}

JSON response:

{
"OpenAuditLogResult" :
{
"id" : "S1!M!S!A1"
}
}
public static OpenAuditLogResult OpenAuditLogons(string mb)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOpenAudit = new OpenAuditLog()
{

tArg = new OpenAuditLogArg()
{
logType = AuditLogType.Logons
},
tMb = new MbId() { id = mb }
};
//Open access protocol with connections list
var result = somClient.OpenAuditLog(tOpenAudit);
return result;
}

See also:

OpenAuditLog: Operation