OVH Community, your new community space.

SOAP Creazione DNS


info@hermedia.it
08.01.2011, 20.28
Salve,
vorrei da PHP tramite SOAP installare una nuova zona.
Ho effettuato il seguente script:

$domain="prova.it"
// nome a dominio registrato da un registrant esterno

$hosting = "dominio.ext";
// Il nome del dominio su cui associato l'hosting.

$mail = "mail.".$domain;
$mail1 = "mail1.".$domain;
$mail2 = "mail2.".$domain;

try {
$soap = new SoapClient("https://www.ovh.com/soapi/soapi-re-1.13.wsdl");

$session = $soap->login("XXXXX-OVH", "XXXXXXX","it", false);
echo "login successfull\n";
$soap->dnsInstall($session, "$domain", "$hosting", false);


$soap->dnsDefaultInstallCustom($session, "$domain", "", "HOSTING", "$hosting", "REDIRECT", "", "it", true);

$soap->zoneEntryAdd($session, $domain, "mail1", "A", "X.X.X.X", true);
$soap->zoneEntryAdd($session, $domain, "mail", "A", "X.X.X.X", true);
$soap->zoneEntryAdd($session, $domain, "mail2", "A", "X.X.X.X", true);
$soap->zoneEntryAdd($session, $domain, "smtp", "A", "X.X.X.X", true);
$soap->zoneEntryAdd($session, $domain, "gestionemail", "A", "X.X.X.X", true);
$soap->logout($session);
echo "logout successfull\n";
} catch(SoapFault $fault) {
echo $fault;
}


E ricevo il seguente errore:

SoapFault exception: [soap:505] Error while retrieving information from databases in /Users/stevejobs/Desktop/aiuto.php:19
Stack trace:
#0 /Users/stevejobs/Desktop/aiuto.php(19): SoapClient->__call('dnsDefaultInsta...', Array)
#1 /Users/stevejobs/Desktop/aiuto.php(19): SoapClient->dnsDefaultInstallCustom('dn20346-ovh-074...', 'hermedia.it?', '', 'HOSTING', 'hermedia.biz', 'REDIRECT', '', 'it', true)
#2 {main}