php初学者~~最近在写php的webservice服务获取新浪股票信息,不知道为什么获取失败,代码如下:<?php
header("Content-Type: text/html;charset=utf-8");
$client = new SoapClient("http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx?wsdl");
$client->soap_defencoding = 'utf-8';
$client->decode_utf8 = false;
$client->xml_encoding = 'utf-8';//$param = array("code"=>'sh000001');
$out = $client->getStockInfoByCode("sh000001");
//print_r($client->__getFunctions ());
//$out = $client->getStockInfoByCode($param) ;
echo '<pre>';
var_dump($out);
echo '</pre>';?> 调用函数不成功,请大家帮忙看看,谢谢!
header("Content-Type: text/html;charset=utf-8");
$client = new SoapClient("http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx?wsdl");
$client->soap_defencoding = 'utf-8';
$client->decode_utf8 = false;
$client->xml_encoding = 'utf-8';//$param = array("code"=>'sh000001');
$out = $client->getStockInfoByCode("sh000001");
//print_r($client->__getFunctions ());
//$out = $client->getStockInfoByCode($param) ;
echo '<pre>';
var_dump($out);
echo '</pre>';?> 调用函数不成功,请大家帮忙看看,谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货