OpenMbLicense

Syntax

OpenMbLicenseResult OpenMbLicense(MbId tMb, OpenMbLicenseArg tArg)

Parameters

tMb. Repository connection moniker.

tArg. Operation execution parameters.

Description

The OpenMbLicense operation gets license instance.

Comments

When working with platform tools, in most cases licenses are checked out and checked in automatically on license server. In some cases, for example, when working with the security manager, one require force checkout of license. To execute the operation, in the tMb field specify repository connection moniker, and in the tArg.featureType field specify type of checked out license. The moniker can be obtained on executing the OpenMetabase operation.

The operations results in the checked out license instance moniker.

To check in the used license instance, use the CloseMbLicense operation.

Example

Below is the example of getting the license required for security manager work. The request contains the repository connection moniker and the required license type. The response contains moniker of the obtained license 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">
<OpenMbLicense xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMb xmlns="">
  <id>COCEMLBIAJABGOAEBPGPAMOAJHNNIHDENJHCPANBHHDMNFPG!M</id>
  </tMb>
<tArg xmlns="">
  <featureType>Adm</featureType>
  </tArg>
  </OpenMbLicense>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<OpenMbLicenseResult 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">
<id xmlns="">
  <id>COCEMLBIAJABGOAEBPGPAMOAJHNNIHDENJHCPANBHHDMNFPG!M!S!MbLicHKGDFNBIAJABGOAEAHPAJBPDEDCPLHJEJKKCALFPNECMCIBB</id>
  </id>
  </OpenMbLicenseResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"OpenMbLicense" :
{
"tMb" :
{
"id" : "COCEMLBIAJABGOAEBPGPAMOAJHNNIHDENJHCPANBHHDMNFPG!M"
},
"tArg" :
{
"featureType" : "Adm"
}
}
}

JSON response:

{
"OpenMbLicenseResult" :
{
"id" :
{
"id" : "COCEMLBIAJABGOAEBPGPAMOAJHNNIHDENJHCPANBHHDMNFPG!M!S!MbLicHKGDFNBIAJABGOAEAHPAJBPDEDCPLHJEJKKCALFPNECMCIBB"
}
}
}
public static OpenMbLicenseResult OpenMbLicense(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOp = new OpenMbLicense()
{
tArg = new OpenMbLicenseArg()
{
featureType = LicenseFeatureType.Adm
},
tMb = new MbId() { id = moniker }
};
// Check out license for working with the security manager
var result = somClient.OpenMbLicense(tOp);
return result;
}

See also:

Working with a Repository