Logiciel | projets | les photos | archives | à propos | contact | inscription
Vous trouverez ci-dessous quelques exemples de code source pour l'utilisation de ce service Web:
<? PHP
Require_once ( 'nusoap.php');
= $ Soapclient nouveau soapclient ( 'http://live.capescience.com/ccx/GlobalWeather.wsdl');
= $ Param de tableau ( "code" => 'LHR');
= $ $ Rét soapclient -> appel (
'GetWeatherReport', $ param,
'Capeconnect: GlobalWeather: GlobalWeather',
'Capeconnect: GlobalWeather: GlobalWeather # getWeatherReport');
Si (chef (ab)> 1) (
Hr = $ $ rét [ 'température'] [ 'relative_humidity'];
$ Time_measured = substr ($ rét [ 'horodatage'], 11, 5);
$ Con = "A". Dollars time_measured. "Humidité:". Dollars hr. "Température ambiante:". Rét $ [ 'température'] [ 'ambiant'];
Imprimer $ PR;
(Autre)
Imprimer "actuellement indisponible";
)
?>
GlobalWeather service Web
La page d'accueil de ce service Web est ici.
Service Web en action
Actuellement indisponible