IsFeatureAvailable

Syntax

AvailableFeature IsFeatureAvailable(AvailableFeature available)

Parameters

available. List of functions, which execution should be checked.

Description

The IsFeatureAvailable operation checks if any function can be executed in the platform.

Comments

To execute the operation, in the available field specify empty values or default values for the fields, which values should be obtained.

The operation results in the list of checkboxes that determine whether the specified functions can be executed in the platform.

Example

Below is the example of getting information about whether export to PDF can be executed.

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">
<IsFeatureAvailable xmlns="http://www.fsight.ru/PP.SOM.Som">
<available xmlns="">
  <pdf>false</pdf>
  </available>
  </IsFeatureAvailable>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"IsFeatureAvailable" :
{
"available" :
{
"pdf" : "false"
}
}
}

JSON response:

{
"IsFeatureAvailableResult" :
{
"pdf" : "1"
}
}
public static AvailableFeature IsFeatureAvailable()
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new IsFeatureAvailable()
{
available = new AvailableFeature()
{
pdf = new Boolean()
}
};
//Get information about export to PDF
var result = somClient.IsFeatureAvailable(tGet);
return result;
}

See also:

Specific Operations