CloseMbLicense

Syntax

bool CloseMbLicense(MbLicenseId tMbLicense)

Parameters

tMbLicense. License instance moniker.

Description

The CloseMbLicense operation checks in license instance.

Comments

To execute the operation, in the tMbLicense field specify moniker of the license instance, which should be checked in. The moniker can be obtained on executing the OpenMbLicense operation.

The operation results in the logical True if the license was checked in successfully.

Example

Below is the example of checking in license instance. The request contains moniker of license instance. The response contains whether the license was checked in successfully.

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">
<CloseMbLicense xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMbLicense xmlns="">
  <id>COCEMLBIAJABGOAEBPGPAMOAJHNNIHDENJHCPANBHHDMNFPG!M!S!MbLicHKGDFNBIAJABGOAEAHPAJBPDEDCPLHJEJKKCALFPNECMCIBB</id>
  </tMbLicense>
  </CloseMbLicense>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseMbLicense" :
{
"tMbLicense" :
{
"id" : "COCEMLBIAJABGOAEBPGPAMOAJHNNIHDENJHCPANBHHDMNFPG!M!S!MbLicHKGDFNBIAJABGOAEAHPAJBPDEDCPLHJEJKKCALFPNECMCIBB"
}
}
}

JSON response:

{
"CloseMbLicenseResult" : "1"
}
public static bool CloseMbLicense(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseMbLicense()
{
tMbLicense = new MbLicenseId() { id = moniker }
};
// Close license instance
var result = somClient.CloseMbLicense(tClose);
return result;
}

See also:

Working with a Repository