Create vhost

				
					StructOperationResponse WebHostingVhostCreate(string $IDsession, string $id, string $fqdn)
			

Create a new vhost on the webhosting.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • fqdn string
    Full Qualified Domain Name..

An Object of type StructOperationResponse

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