<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php $client = new SoapClient("http://localhost/moodle/agap.wsdl"); $var = 4; $res1 = $client->info(new SoapParam($var, "StudentNumber")); print $res1 . "<br/>\n"; $var = 'qdelamot'; $var2 = 'mot de passe'; $res2 = $client->notes(new SoapParam($var, "StudentLogin"), new SoapParam($var2, "StudentPassword")); print $res2 . "<br/>\n"; ?> </body> </html>
echo "<pre>" . htmlspecialchars($service1_failed_WSDL) . "</pre>"; file_put_contents($service1_failed_WSDL_file, $service1_failed_WSDL); $client1 = new SoapClient($service1_WSDL_file); $var11 = 4; $res11 = $client1->matiere(new SoapParam($var11, "NumMatiere")); print $res11 . "<br/>\n"; $var12 = 'PAMEF'; $res12 = $client1->description(new SoapParam($var12, "DesMatiere")); print $res12 . "<br/>\n"; $client2 = new SoapClient($service2_WSDL_file); $var21 = "4"; //$res21 = $client2->info(new SoapParam($var21, "StudentNumber")); print $res21 . "<br/>\n"; $var22 = 'qdelamot'; $var23 = 'mot de passe'; $res22 = $client2->notes(new SoapParam($var22, "StudentLogin"), new SoapParam($var23, "StudentPassword")); print $res22 . "<br/>\n"; //======================================================================================================================================================= // Fonctions //======================================================================================================================================================= //fonction permettant d'obtenir une architecture XML function format($xml) { $dom = new DomDocument(); $dom->loadXML($xml); $dom->formatOutput = true; return $dom->saveXML(); } //fonction qui affiche les echanges entre les services, en partant dernier message émis par le client en parametre. C'est le nom du client qui est en parametre function getLastHTTPDialogue($client) {