Home >Backend Development >PHP Tutorial > PHP调用WebService,求大神帮忙看下~解决方法
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 />