CloseAuditLog

Syntax

CloseAuditLog(AuditLogId tLog)

Parameters

tLog. Access protocol moniker.

Description

The CloseAuditLog operation closes an access protocol instance.

Comments

This operation is used to close the instance of the repository connection protocol or the instance of the protocol of operations executed within the repository connection. The OpenAuditLog operation is used to open a protocol instance.

Example

The example of closing an instance of the access protocol. The request contains moniker of opened protocol instance.

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">
<CloseAuditLog xmlns="http://www.prognoz.ru/PP.SOM.Som">
<tLog xsi:type="q1:OpenAuditLogResult" xmlns=" " xmlns:q1="http://www.prognoz.ru/PP.SOM.Som">
  <id>S1!M!S!A1</id>
  </tLog>
  </CloseAuditLog>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
 "CloseAuditLog" :
  {
   "tLog" :
    {
     "id" : "S1!M!S!A1"
    }
  }
}

JSON response:

{
 "CloseAuditLogResult" : "1"
}
public static bool CloseAuditLog(AuditLogId logId)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tCloseLog = new CloseAuditLog()
{
tLog = logId
};
//Close
var result = somClient.CloseAuditLog(tCloseLog);
return result;
}

See also:

Common Operations