PHP如何解析 WEBSERVICES接口返回的数据
WEBSERVICE服务器,他们用.net写了个接口 http://XXX.XXX.XXX.XX/Info.asmx?wsdl
我用PHP调用这个接口
try{
$wsdl = "http://XXX.XXX.XXX.XX/Info.asmx?wsdl";
$client = new SoapClient($wsdl);
$param = array('strName'=>'吴小明', 'strIDCard'=>'4528XXXXXXXX', 'decZiparea'=>'450900');
$res = $client->GetBasicInfo($param);
print_r($res);
}catch(SOAPFault $e){
var_dump($e);
}
stdClass Object
(
[GetBasicInfoResult] => stdClass Object
(
[any] =>
4507…………
4507…………
吴……
男性
4528…………
1966-03-10T00:00:00+08:00
道路…………
2011-05-23T00:00:00+08:00
2011-05-23T00:00:00+08:00
2017-05-22T00:00:00+08:00
钦州市…………
AAA级
C1证
)
)
已抢65414个
抢已抢29671个
抢已抢16268个
抢已抢8236个
抢已抢10692个
抢已抢21445个
抢