PHP调用WebSevice,中的地址指向服务器本地,如何吧地址改成ip地址然后再调用
<?php
header("Content-type: text/html; charset=utf-8");
$client = new SoapClient(" http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl");
echo "<pre>";
print_r($client->__getFunctions ()) ;//获取WebService提供的函数
$param = array('theCityName'=>"台州");
$result = $client->__soapCall('getWeatherbyCityName',array('paramters'=>$param));
echo "<pre>";
print_r($result);
?>
网上的天气案例,我现有的WebSevice的<soap:address location>标签指向http://localhost/xxx,如何改成http://ip/xxx,然后再调用