software | projects | photos | archive | about | contact | subscribe  RSS
Below is some example source code for how to use this 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['temperature']['relative_humidity'];
  $time_measured = substr($ret['timestamp'], 11, 5);
  $pr = "At ".$time_measured." Humidity:".$rh." Ambient temp:".$ret['temperature']['ambient'];
print $pr;
} else {
  print "Currently unavailable";
}
?>
 GlobalWeather web service
The homepage for this web service is here.
 Web service in action
Currently unavailable