Imports license.
[C#] public ImportLicenseResult ImportLicense( string licence );
ImportLicenseResult value that provides information about the result of the operation.
| Role | Access/rights description |
|---|---|
| Administrator | Unrestricted access. |
| Reseller, SiteOwner, Anonymous user | No access. AccessDenied result code will be returned. |
| Request |
|---|
POST /sbw_trunk/ServiceFacade/4.5/SystemWebService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swsoft.com/webservices/sb/4.5/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.5/SystemService">
<Login>string</Login>
<Password>string</Password>
</CredentialsSoapHeader>
</soap:Header>
<soap:Body>
<ImportLicense xmlns="http://swsoft.com/webservices/sb/4.5/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.5/SystemService">
<ImportLicenseResult>OK or UnknownError or LicenseCorrupted or LicenseVersionInvalid or PleskNotFound or VirtuozzoNotFound or AccessDenied</ImportLicenseResult>
</ImportLicenseResponse>
</soap:Body>
</soap:Envelope> |