Getting List of Operations within One Repository Connection

Below is the example of using the OpenAuditLog operation to open the access protocol with the list of operations within the specified repository connection. The request contains moniker of opened repository connection and a key of the session, within which operations are executed with objects. The response contains the moniker of the access protocol instance that contains records of operations executed with objects.

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>Operations</logType>
  <session>76206</session>
  </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!A2</id>
  </OpenAuditLogResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"OpenAuditLog" :
{
"tMb" :
{
"id" : "S1!M"
},
"tArg" :
{
"logType" : "Operations",
"session" : "76206"
}
}
}

JSON response:

{
"OpenAuditLogResult" :
{
"id" : "S1!M!S!A2"
}
}
public static OpenAuditLogResult OpenAuditOperations(string mb, uint sessyonKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOpenAudit = new OpenAuditLog()
{
tArg = new OpenAuditLogArg()
{
logType = AuditLogType.Operations,
session = sessyonKey
},
tMb = new MbId() { id = mb }
};
//Open access protocol with list of operations executed
//within the specified repository connection
var result = somClient.OpenAuditLog(tOpenAudit);
return result;
}

See also:

OpenAuditLog: Operation