如何从wsdl页面获取详细信息

发布于 2024-12-18 14:40:51 字数 811 浏览 0 评论 0原文

我一直在使用 http://www.mobilefish.com/services/web_service/ country.php?wsdl 文件以获取国家/地区地理详细信息。但我一直未能通过 nusoap 实现这一目标。请在这方面给我建议

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

I have been using the http://www.mobilefish.com/services/web_service/countries.php?wsdl file to get the country geographic details. But i have been failing in achieving it by nusoap. Plz advise me on this regard

<?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);
?>

The help guide is http://www.mobilefish.com/tutorials/web_service/web_service_quickguide_countries.html page. plz help me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海夕 2024-12-25 14:40:51

试试这个:

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

将第二个参数设置为 true 以创建 wsdl 客户端

try this :

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

set second parameter as true to make wsdl client

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文