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

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

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

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

<br />
<?php<br />
$wsdl="http://pica.chalwin.com/service/JsAccessWebService.asmx?wsdl";<br />
$client = new SoapClient($wsdl);<br />
$param = array('NodeId'=>'1','outCount'=>'10');<br />
$ret = $client->LatestNews($param);<br />
if($ret->return){<br />
  print_r($ret->return);<br />
}else{<br />
  echo 'no user';<br />
}<br />
?><br />



简单的调用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