stdClass Object 输出问题

sunbingyan503126 2009-08-09 10:34:28

<?php
$ip = gethostbyname($SERVER_ADDR);
$wsdl = "http://$ip:8080/xjxl/services/QueryService?wsdl";
$client = new SoapClient($wsdl);
$onePhone = $client -> getQueryStudentList(
array(
'in0'=>$studentName,'in1'=>$gender,'in2'=>$enterDate,
'in3'=>$birthday,'in4'=>$collegeName,'in5'=>$majorName,
'in6'=>$trainLevel
));
print_r($onePhone);
?>


stdClass Object ( [out] => stdClass Object ( [string] =>com.xsoft.pojo.edu.student.StudentHistory@142c2af ) )

调用webservice返回打印出上面的样式
我要如何取得里面的值呢
...全文
229 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
fenyao 2009-08-09
  • 打赏
  • 举报
回复

$output = $onePhone->out->string;
echo $output;

这样行不?
countstars 2009-08-09
  • 打赏
  • 举报
回复
这么明显,soap服务器挂了
sunbingyan503126 2009-08-09
  • 打赏
  • 举报
回复
不行啊

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧