按照下面的代码$client = new soapclient("http://xxxx/service.asmx?WSDL");
$param["Goodsno"]="XX";
$param["Inventoryno"]="";
$param["ColorName"]="";
$param["CmName"]="";
$param["BrandName"]="";
$res = $client->__Call('GetInventory',array('paramters'=>$param));
echo "<pre>";
print_r($res);
echo "<pre>";
打印出来的数据是
stdClass Object
(
[GetInventoryResult] => stdClass Object
(
[ArrayOfString] => Array
(
[0] => stdClass Object
(
[string] => Array
(
[0] => xx
[1] => xx
[2] => xx
[3] => xx
[4] => xx
) )
要怎么样才能解析出[0] => xx[1] => xx[2] => xx[3] => xx[4] => xx的值呢
我在$res = $client->__Call('GetInventory',array('paramters'=>$param));后面加->GetInventoryResult->string,返回的是NULL求助求助求助~~~~
$param["Goodsno"]="XX";
$param["Inventoryno"]="";
$param["ColorName"]="";
$param["CmName"]="";
$param["BrandName"]="";
$res = $client->__Call('GetInventory',array('paramters'=>$param));
echo "<pre>";
print_r($res);
echo "<pre>";
打印出来的数据是
stdClass Object
(
[GetInventoryResult] => stdClass Object
(
[ArrayOfString] => Array
(
[0] => stdClass Object
(
[string] => Array
(
[0] => xx
[1] => xx
[2] => xx
[3] => xx
[4] => xx
) )
要怎么样才能解析出[0] => xx[1] => xx[2] => xx[3] => xx[4] => xx的值呢
我在$res = $client->__Call('GetInventory',array('paramters'=>$param));后面加->GetInventoryResult->string,返回的是NULL求助求助求助~~~~
解决方案 »
- savant3
- 一个dotProject登录的问题 急急急 在线等
- 开新帖:php怎么分词 去查找数据库中相应的内容
- 查看源代码 出现乱码??
- 显示
- 小弟 有个小问题 请大侠赐教 顺便送上70分
- wampserver2.2a安装后运行出现以下错误,怎样解决
- <b>Warning</b>: PHP Startup: Unable to load dynamic library 'D:\DevPrograms\php5.2\ext\php_exif.dll' - 找不到指定的模块。
- 开源软件如何查看源代码
- php从记号a到记号b割成一个数组,怎么割。求大佬指点
- wordpress插件的问题
- 问个关于 采集的问题
$res = (array)$client->__Call('GetInventory',array('paramters'=>$param));
print_r((array)$res[ArrayOfString][0]);