时间:2021-07-01 10:21:17 帮助过:8人阅读
$wsdl="http://pica.chalwin.com/service/JsAccessWebService.asmx?wsdl";
$client = new SoapClient($wsdl);
$param = array('NodeId'=>'1','outCount'=>'10');
$ret = $client->LatestNews($param);
if($ret->return){
print_r($ret->return);
}else{
echo 'no user';
}
?>
foreach($ret->LatestNewsResult->InheritanceNews as $item) {
foreach($item as $k=>$v) {
echo "$k : $v\n";
}
}