| A continuación se muestra algunos ejemplos de código fuente de la forma de utilizar este servicio web: |
| <? Php Require_once ( 'nusoap.php'); $ Soapclient = new soapclient ( 'http://live.capescience.com/ccx/GlobalWeather.wsdl'); $ Params = array ( "code" => "LHR '); $ Ret = $ soapclient -> llamada ( "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 dólares. "Humedad:". $ Rh ". Ambient Temp:". $ Ret [ 'temperatura'] [ 'ambient']; Print $ PR; ) Else ( Print "Actualmente no disponible"; ) ?> |
La página principal de este servicio web está aquí.Servicio Web en acción
Actualmente no disponible