| 下面是一些范例源代码如何使用本网站的服务: |
| <引用。 require_once ( ' nusoap.php ' ) ; 元soapclient = 新 soapclient ( ' http://live.capescience.com/ccx/globalweather.wsdl ' ) ; 元params = 阵列 ( ' 典' = > '静息时' ) ; 元ret = $ soapclient ->电话: ( ' getweatherreport ' , $ params , ' capeconnect : globalweather : globalweather ' , ' capeconnect : globalweather : globalweather # getweatherreport ' ) ; 如果 ( 计数( $ ret ) > 1 ) ( 美元铑= $ ret [ ' 温度' ] [ ' relative_humidity ' ] ; 元time_measured = substr ( $ ret [ ' 戳' ] , 11 , 5 ) ; 元公关 = " 在" 。 元time_measured " 。 湿度: " $铑 "的环境温度是: " 。 元ret [ ' 温度' ] [ '环境' ] ; 打印元公关 ; ) 否则 ( 打印 " ,目前无法提供" ; ) ? > |
该网页,以供这个web service的,是在这里 。网络服务在行动
目前无法获得