SystemWebService.ImportLicense Method 

Imports license.

[C#]
public ImportLicenseResult ImportLicense(
   string licence
);

Parameters

licence
The content of the license/key file.

Return Value

ImportLicenseResult value that provides information about the result of the operation.

Access

Role Access/rights description
Administrator Unrestricted access.
Reseller, SiteOwner, Anonymous user No access. AccessDenied result code will be returned.

Example SOAP 1.1

Request
POST /wsb/ServiceFacade/4.1/SystemWebService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swsoft.com/webservices/sb/4.1/SystemService/ImportLicense"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <CredentialsSoapHeader xmlns="http://swsoft.com/webservices/sb/4.1/SystemService">
      <SsoSessionId>string</SsoSessionId>
      <SsoId>string</SsoId>
      <Login>string</Login>
      <Password>string</Password>
    </CredentialsSoapHeader>
  </soap:Header>
  <soap:Body>
    <ImportLicense xmlns="http://swsoft.com/webservices/sb/4.1/SystemService">
      <licence>string</licence>
    </ImportLicense>
  </soap:Body>
</soap:Envelope>
Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ImportLicenseResponse xmlns="http://swsoft.com/webservices/sb/4.1/SystemService">
      <ImportLicenseResult>OK or UnknownError or LicenseCorrupted or LicenseVersionInvalid or PleskNotFound or VirtuozzoNotFound or AccessDenied</ImportLicenseResult>
    </ImportLicenseResponse>
  </soap:Body>
</soap:Envelope>

See Also

SystemWebService Web Service | Web services