<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php $client = new SoapClient("http://localhost/agap/moodle.wsdl"); $var = 4; $res1 = $client->matiere(new SoapParam($var, "NumMatiere")); print $res1 . "<br/>\n"; $var2 = 'PAMEF'; $res2 = $client->description(new SoapParam($var2, "DesMatiere")); print $res2 . "<br/>\n"; ?> </body> </html>
//======================================================================================================================================================= try { $service1_failed_WSDL = htmlspecialchars_decode($MooWSe_client->getWSDL(new SoapParam($service1, "service")), ENT_XML1); } catch (SoapFault $fault) { echo getLastHTTPDialogue($MooWSe_client); trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR); } echo getLastHTTPDialogue($MooWSe_client); 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) {