这种数据应该怎么解析呢?
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"><soap:Header>
...
...
</soap:Header><soap:Body>
...
...
<soap:Fault>
...
...
</soap:Fault>
</soap:Body></soap:Envelope>
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"><soap:Header>
...
...
</soap:Header><soap:Body>
...
...
<soap:Fault>
...
...
</soap:Fault>
</soap:Body></soap:Envelope>
<?php
header('Content-Type: text/html; charset=UTF-8');
$client = new SoapClient('http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx?WSDL');
$parm=array('mobileCode'=>'13782149159','userID'=>'');
$result=$client->getMobileCodeInfo($parm);
$result=get_object_vars($result); //将stdclass object转换为array,这个比较重要了
echo "你的手机卡信息:".$result['getMobileCodeInfoResult'];
?>
就这么简单了。。