ClosePrxMeta

Syntax

bool ClosePrxMeta(string mon)

Parameters

mon. Moniker of opened regular report instance.

Description

The ClosePrxMeta operation closes regular report instance.

Comments

To execute the operation, in the mon field specify moniker of the regular report instance to be closed. The moniker can be obtained on executing the OpenPrxMeta operation.

The operation results in the logical True if the object was closed successfully.

Example

Below is the example of closing regular report instance. The request contains opened report moniker, the response contains whether the report is successfully closed.

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">
<ClosePrxMeta xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1</mon>
  </ClosePrxMeta>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"ClosePrxMeta" :
{
"mon" : "S1!M!S!P1"
}
}

JSON response:

{
"ClosePrxMetaResult" : "1"
}
public static bool CloseMetaPrx(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new ClosePrxMeta()
{
mon = moniker
};
//Close regular report
var result = somClient.ClosePrxMeta(tClose);
return result;
}

See also:

Working With Regular Reports