Home  >  Article  >  Backend Development  >  PHP调用WebService,求大神帮忙看下~解决方法

PHP调用WebService,求大神帮忙看下~解决方法

WBOY
WBOYOriginal
2016-06-13 12:46:41641browse

PHP调用WebService,求大神帮忙看下~


$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';
}
?>



简单的调用Webservice,这是什么错呢?求大神指导~

Statement:
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