Initialize dns zone

				
					StructOperationResponse WebHostingZoneInit(string $IDsession, string $domain, string $profil)
				
			

Reset all DNS settings with a template.

REQUIRED

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

An Object of type StructOperationResponse

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