| Hieronder vindt u een aantal voorbeeld broncodes voor het gebruik van deze web service: |
| <? PHP require_once ( 'nusoap.php'); $ soapclient = new soapclient ( 'http://live.capescience.com/ccx/GlobalWeather.wsdl'); $ params = array ( 'code' => 'LHR'); $ ret = $ soapclient -> call ( 'getWeatherReport', $ params, 'capeconnect: GlobalWeather: GlobalWeather', 'capeconnect: GlobalWeather: GlobalWeather # getWeatherReport'); if (count ($ ret)> 1) ( $ rh = $ ret [ 'temperatuur'] [ 'relative_humidity']; $ time_measured = substr ($ ret [ 'timestamp'], 11, 5); $ pr = "Op". $ time_measured. "Vochtigheid:". $ rh. "Ambient temp:". $ ret [ 'temperatuur'] [ 'ambient']; print $ PR; Else () print "momenteel niet beschikbaar"; ) ?> |
De startpagina voor deze webdienst is hier.Web service in actie
Momenteel niet beschikbaar