创建一个简单的SOAP客户端
如何做...
$wsdl = 'http://graphical.weather.gov/xml/SOAP_server/'
. 'ndfdXMLserver.php?wsdl';$soap = new SoapClient($wsdl, array('trace' => TRUE));$units = 'm';
$params = '';
$numDays = 7;
$weather = '';
$format = '24 hourly';
$startTime = new DateTime();$xml = new SimpleXMLElement($soap->LatLonListCityNames(1));如何运行...

参考
最后更新于