ClosePrx

Syntax

bool ClosePrx(PrxId tPrx)

Parameters

tPrx. Opened regular report instance moniker.

Description

The ClosePrx operation closes an instance of regular report.

Comments

To execute the operation, in the tPrx parameter specify moniker of the regular report instance to be closed. The operation results in the logical True if the report 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">
<ClosePrx xmlns="http://www.fsight.ru/PP.SOM.Som">
<tPrx xmlns="">
  <id>S1!M!S!P1</id>
  </tPrx>
  </ClosePrx>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"ClosePrx" :
{
"tPrx" :
{
"id" : "S1!M!S!P1"
}
}
}

JSON response:

{
"ClosePrxResult" : "1"
}
public static bool ClosePrx(PrxId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new ClosePrx()
{
tPrx = moniker
};
//Open regular report
var result = somClient.ClosePrx(tClose);
return result;
}

See also:

Working with Regular Reports