2011-11-30 100 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