webservice 取值的问题二,在线等 http://www.jxhdfc.cn/jxhdwebservice/jxhdservice.asmx/Jxhdfy这是对方提供的一个webservice页面,现问:我怎么把 前1000个talble中的trade districtname 这二个字段的值输出来,thanks 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $path = "download_hd.xml";$client = new SoapClient("http://www.jxhdfc.cn/jxhdwebservice/jxhdservice.asmx?WSDL",array('encoding'=>'UTF-8'));$result = $client->__call("Jxhdfy",array());//print_r($result);$rs = $result->JxhdfyResult->any;//echo $rs;if(file_exists($path)){ file_put_contents($path,$rs); $xml = new DOMDocument(); $xml ->load($path); $table = $xml->getElementsByTagName("Table"); $i=0; foreach($table as $list){ if($i>100){break;} //feild count:21 $row["trade"] = $list->getElementsByTagName("trade")->item(0)->nodeValue; 参考http://topic.csdn.net/u/20081129/11/6f226b76-2495-4eb5-a98b-246564bfb07e.html php建表不成功,但也没有报错,求解 为什么页面刷新后这个window.scrollTo()函数不起作用? 求php生成下半身透明png的完整程序代码。 大家帮我看这段代码的错误在那 smarty 的if 和section问题 请教一个关于问题音乐防盗链 php如何调用C语文程序,有例程吗??? 这个PHP文件错在哪里呢?小弟不懂:( 大家是怎样分页的?(文本) 关于高并发操作数据库问题 不允许一个用户使用一个以上用户名与一个服务器或共享资源的多重连接 在循环中判断时,数值判断使用恒等要比等于高效?
$client = new SoapClient("http://www.jxhdfc.cn/jxhdwebservice/jxhdservice.asmx?WSDL",array('encoding'=>'UTF-8'));
$result = $client->__call("Jxhdfy",array());
//print_r($result);
$rs = $result->JxhdfyResult->any;
//echo $rs;
if(file_exists($path)){
file_put_contents($path,$rs);
$xml = new DOMDocument();
$xml ->load($path);
$table = $xml->getElementsByTagName("Table");
$i=0;
foreach($table as $list){
if($i>100){break;}
//feild count:21
$row["trade"] = $list->getElementsByTagName("trade")->item(0)->nodeValue;
http://topic.csdn.net/u/20081129/11/6f226b76-2495-4eb5-a98b-246564bfb07e.html