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

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

WBOY
Release: 2016-06-13 12:46:41
Original
741 people have browsed it

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 />
Copy after login



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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template