Home > Backend Development > PHP Tutorial > soap服务端返回二维数组,客户端无法显示,该怎么解决

soap服务端返回二维数组,客户端无法显示,该怎么解决

WBOY
Release: 2016-06-13 13:46:44
Original
979 people have browsed it

soap服务端返回二维数组,客户端无法显示
soap服务器端返回数组:$ret[] = array('id'=>$id, 'user'=>$user, 'time'=>$time);
客户端$resault=$customer -> call ("data", $params);

这样的话$resault = array();$nums=sizeof($resault);$nums为0;
不定义$resault = array();又提示出错
怎么解决


------解决方案--------------------
不定义出什么错。
------解决方案--------------------
...
$resault=$customer -> call ("data", $params);
echo var_export($resault);

贴出结果
------解决方案--------------------
SoapClient的方法__call

有两下划线吧?

寻求帮助,要把报错信息贴出来。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template