Initialize dns zone

				
					StructOperationResponse WebHostingZoneInit(string idSession, string domain, int templateDNS)
			

Reset all DNS settings with a template.

REQUIRED

  • idSession string (32)
    Session ID.
  • domain string
    Domain name.
  • templateDNS string
    Template number.

An Object of type StructOperationResponse

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