我需要调用一个.net soap 地址用户名我都有,但是 它其中的一个函数返回的是 .net 的一个自定义的类,并且是这个类的数组。我就不知道,如何用php 去得到它的值了,只得到了
object(stdClass)#2 (1) {
["GetProductResult"]=>
object(stdClass)#3 (0) {
}
}
object(stdClass)#2 (1) {
["GetProductResult"]=>
object(stdClass)#3 (0) {
}
}
解决方案 »
- 域名解析超级难题
- 利用AJAX实现自动更新--用户触发
- <BUTTON class=button onclick="Run('file:///D:/GooglePinyinInstaller.exe')">QQ</BUTTON>
- 新手请教一个简单的遍历数组问题,谢谢!
- php配置问题
- php 字符串 反转 ?
- Error in my_thread_global_end(): 1 threads didn't exit
- [江湖急救]我使用history.go(-1)回到前一页,为什么信息会消失不见?
- 请问如何用php实现文件传输、下载?
- 是文件夹权限吗?Permission denied
- cookie
- apache php 发送邮件的问题
忘了需不需要先json_decode了,你自己去试下
["GetProductResult"]=>
object(stdClass)#4 (0) {
}
}这个是全部
<?php
require_once('lib/nusoap.php');
header("content-type:text/html;charset=utf-8");
$parameters = array('LoginName'=>'xxx','LoginPassword'=>xxxxxx');
$client = new SoapClient("http://dsfws2.toponecn.cn/ChauffeurDriveService.asmx?wsdl");
$p = $client->GetProduct($parameters);
echo('<pre>');
var_dump($p);
echo('</pre>');
?>
这是代码