我一直在使用http://www.mobilefish.com/services/web_service/countries.php?wsdl文件来获取国家/地区的详细信息。但我一直未能通过nusoap实现它。 Plz就此提出建议
<?php
require_once('ws/lib/nusoap.php'); //including the file
$client = new nusoap_client('http://www.mobilefish.com/services/web_service/countries.php?wsdl');
$geo = $client->call('countryInfoByIana', //calling the method of server object and
array('ianacode' => 'us'));
var_dump($geo);
?>
帮助指南是http://www.mobilefish.com/tutorials/web_service/web_service_quickguide_countries.html页面。请帮助我。
答案 0 :(得分:0)
试试这个:
$client = new nusoap_client('http://www.mobilefish.com/services/web_service/countries.php?wsdl',true);
将第二个参数设置为true以生成wsdl客户端