2011-11-30 97 views
1

我一直在使用http://www.mobilefish.com/services/web_service/countries.php?wsdl文件获取国家地理详细信息。但我一直未能通过nusoap实现它。 Plz在这方面给我建议如何从wsdl页面获取详细信息

<?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页面。 PLZ帮助我。

回答

0

试试这个:

$client = new nusoap_client('http://www.mobilefish.com/services/web_service/countries.php?wsdl',true); 

设置第二个是真实参数,使WSDL客户

+0

对不起,MMT仍然得到问题。每件事看起来都很好。但它使我疯狂。 – chandoo

+0

你有什么异常? – MMT

+0

每件事情都很好。我通过我们的代理得到了问题。 – chandoo