l´affichage des parameteres.mais le wsdl ne s´affiche pas m´indiquant cette erreur:
pour le moment j´arrive pas a supprimer ces erreurs,je vous ai mis le code en esperant que vous pouvez m´aider :)
<?php
include('connexion.php');
//ma fonction
function getParametresClient($login,$pwd) {
$rq_para = mysql_query("SELECT * FROM authentification
WHERE user= $login
and pwd= $pwd");
while($para = mysql_fetch_array($rq_para)){
$tab_para = array();
$CodeC = $para['CodeclientP'];
$tab_para[]=$CodeC;
$username = $para['user'];
$tab_para[]=$username;
$password = $para['pwd'];
$tab_para[]=$password;
$mail = $para['mail'];
$tab_para[]=$mail;
$Adsl = $para['adsl'];
$tab_para[]=$Adsl;
$Debit = $para['debit'];
$tab_para[]=$Debit;
$DateService = $para['DateServ'];
$tab_para[]=$DateService;
$tel = $para['Tel'];
$tab_para[]=$tel;
}
return $tab_para;
}
require_once('lib/nusoap.php');
// Création du service
$server = new soap_server;
// Initialize WSDL support
$server->configureWSDL("Service", 'http://localhost/Service.php');
//define complex types for returned array of clientP information
$server->wsdl->addComplexType(
'clientP',
'complexType',
'struct',
'all',
'',
array(
'CodeC' => array('name'=>'CodeC','type'=>'xsd:int'),
'username' => array('name'=>'username','type'=>'xsd:string'),
'password' => array('name'=>'password','type'=>'xsd:string'),
'mail' => array('name'=>'mail','type'=>'xsd:string'),
'Adsl' => array('name'=>'Adsl','type'=>'xsd:string'),
'Debit' => array('name'=>'Debit','type'=>'xsd:string'),
'DateService ' => array('name'=>'DateService ','type'=>'xsd:string'),
'tel' => array('name'=>'tel','type'=>'xsd:string')) );
// Enregistrement de la méthode
$server->register('getParametresClient', // method name
array('login' => 'xsd:string','pwd' => 'xsd:string'), // input parameters
array('return' => 'tns:clientP'), // output parameters
'http://localhost/Service', // namespace (espace de nommage unique)
'http://localhost/Service.php#getParametresClient', // soapaction (fonction)
'rpc', // style
'encoded', // use
'para clientP' // documentation
);
// Invoque le service
$requete_HTTP_brute = (isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:'');
$server>service($requete_HTTP_brute);
?>