Set registrar lock

				
					StructOperationResponse domainSetPreference(string idSession, string domain, string codePref, string value)
				
			

Enable or disable the registrar lock feature.

REQUIRED


  • idSession string (32)
    Session ID.
  • domain string (255)
    Domain name.
  • codePref string
    Set to: “registrar_lock”.
  • value string (1)
    Set to: “0” to disable, “1” to enable.

An Object of type StructOperationResponse

This feature is available according to the extension.

See structdomaintldinfo.HasRegistrarLock

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");
      $clientSOAP->domainSetPreference($idSession, "netim.com", "registrar_lock", "1"); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>