par
caporga » 09 oct. 2008, 21:48
salut,
je patoge un peu avec le code ci-dessous, je veux récupérer les données, voilou
( la structure de $result est An array of pop struct
* stringnic : the master nic
* stringdomain : le nom de domaine
* stringname : the pop name
* stringdescription : the description
* stringsize : the size)
<?php
require_once('lib/nusoap.php');
$client = new soapclient('http://www.ovh.com/soapi/ovh.wsdl', true);
$soap = $client->getProxy();
//login
$login = "xxxxxx-ovh";
$password = "******";
$session = $soap->login($login,$password,null);
if($soap->getError()) {
echo "Error : ";
print_r($soap->getError());
} else {
echo "login successfull";
}
//popList
$result = $soap->popList($session, '');
if($soap->getError()) {
echo "Error : ";
print_r($soap->getError());
} else {
echo "popList successfull";
// your code here ...
}
//logout
$session = $soap->logout($session);
if($soap->getError()) {
echo "Error : ";
print_r($soap->getError());
} else {
echo "logout successfull";
}
?>
salut,
je patoge un peu avec le code ci-dessous, je veux récupérer les données, voilou
( la structure de $result est An array of pop struct
* stringnic : the master nic
* stringdomain : le nom de domaine
* stringname : the pop name
* stringdescription : the description
* stringsize : the size)
[php]
<?php
require_once('lib/nusoap.php');
$client = new soapclient('http://www.ovh.com/soapi/ovh.wsdl', true);
$soap = $client->getProxy();
//login
$login = "xxxxxx-ovh";
$password = "******";
$session = $soap->login($login,$password,null);
if($soap->getError()) {
echo "Error : ";
print_r($soap->getError());
} else {
echo "login successfull";
}
//popList
$result = $soap->popList($session, '');
if($soap->getError()) {
echo "Error : ";
print_r($soap->getError());
} else {
echo "popList successfull";
// your code here ...
}
//logout
$session = $soap->logout($session);
if($soap->getError()) {
echo "Error : ";
print_r($soap->getError());
} else {
echo "logout successfull";
}
?>[/php]