Create database

					StructOperationResponse WebHostingDBCreate(string $IDsession, string $id, string $dbName, string $version="")

Create a database.


  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • dbName string
    Name of the database.

    It must be prefixed by the vhost ID and an underscore (Example XX000_mydatabase).


  • version string
    Desired SQL version. If empty, the latest version will be used.

An Object of type StructOperationResponse

$clientSOAP = new SoapClient("http://URL.wsdl");
    $idSession = $clientSOAP->sessionOpen("XX000", "XX000", "EN"); 
    $clientSOAP->WebHostingDBCreate($idSession, "NW1024", "NW1024_database"); 
catch(SoapFault $fault) 
    echo "Exception : " .$fault->getMessage(). "\n"; 
if (isset($idSession))