Mots clés : PHP WSDL
<?php $client = new SoapClient( "http://www.abundanttech.com/WebServices/Population/population.asmx?WSDL" ); $res = $client->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 ("<br/>"); #print (var_export($pays3,true)); #print ("<br/>"); var_export(array_keys($pays),true); ?>