Skip to content

List databases

By Mounir 1 min read

List the databases associated with an account

array Liste_BDD( login, motdepasse)

Description

Retrieve the list of databases associated with the account identified by login and password.

Parameters (required)

login: customer ID (nichandle)

motdepasse: the password

Return value

An array where each row contains an array with the parameters of a database:

  • [id] => database identifier
  • [reference] => database reference

Error messages

No field must be left empty login

No field must be left empty motdepasse

Authentication error (invalid login / password)

Example with NuSOAP

include('nusoap/nusoap.php');

$client = new soapclient('https://www.eml-srv.com/_soap/control.php'); // Remove the 's' from https if CURL is not installed

$parametres = array( 'login'=>'your_login', 'motdepasse'=>'your_password' );

$variable=$client->call('Liste_BDD', $parametres);

// Retrieve the error, if any
if($client->fault)
die("Error:Code: {$client->faultcode}"
. "Detail: {$client->faultactor}"
. "Solution: {$client->faultstring}");

print_r($variable);

Example with PHP5

try { $client = new SoapClient(null, array('location' => "https://www.eml-srv.com/_soap/control.php", 'uri'      => "https://www.eml-srv.com", 'encoding'=>'ISO-8859-1' ));

$variable = $client->Liste_BDD('your_login','your_password'); //or //$variable = $client->__soapCall(Liste_BDD,$parametres);

print_r($variable); } catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);

}
Last updated on