====== Consommer un webservice ====== Mots clés : PHP WSDL * Analyser le fichier WSDL ci dessous et consommer le/les webservices : * http://www.abundanttech.com/WebServices/Population/population.asmx?WSDL * http://www.abundanttech.com/WebServices/DeadOrAlive/DeadOrAlive.asmx/getTodaysBirthdays * http://www.abundanttech.com/WebServices/AtomicClock/AtomicClock.asmx * Exemple d'implementation en PHP getCountries(array('getCountries' => "")); print (var_export($res,true)); print count($res); $pays = (array)$res; $pays3 = (array)$pays['getCountries']; #print 'RES = ' . array(array($pays['getCountriesResult'])['string'])[0]; $tp = (array($pays['getCountriesResult'])); print $tp['string']; $pays2 = get_object_vars($res); #print ("
"); #print (var_export($pays3,true)); #print ("
"); var_export(array_keys($pays),true); ?>