| Di seguito è riportato un esempio di codice sorgente per le informazioni su come utilizzare questo servizio web: |
| <? Php Require_once ( 'nusoap.php'); $ Soapclient = new soapclient ( 'http://live.capescience.com/ccx/GlobalWeather.wsdl'); $ Params = array ( 'codice' => 'LHR'); $ Ret = $ soapclient -> chiamata ( 'GetWeatherReport', $ params, 'Capeconnect: GlobalWeather: GlobalWeather', 'Capeconnect: GlobalWeather: GlobalWeather # getWeatherReport'); If (count ($ ret)> 1) ( $ Rh = $ ret [ 'temperatura'] [ 'relative_humidity']; Time_measured $ = substr ($ ret [ 'timestamp'], 11, 5); $ Pr = "A". Time_measured $ ". Umidità:". $ Rh ". Temperatura ambiente:". $ Ret [ 'temperatura'] [ 'ambient']; Print $ PR; Else () Print "al momento non disponibile"; ) ?> |
L'homepage di questo servizio web è qui.Servizio Web in azione
Al momento non disponibile