Set whois privacy

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

Enable or disable the whois privacy feature.

REQUIRED


  • idSession string (32)
    Session ID.
  • domain string (255)
    Domain name.
  • codePref string
    Set to “whois_privacy”.
  • 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.HasWhoisPrivacy

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