且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用PHP解析soap响应

更新时间:2022-06-12 06:06:19

在此处查看完整参考: https://***.com/a/38783380/6511851

See complete reference here: https://***.com/a/38783380/6511851

$sxe = new SimpleXMLElement($response); //in $response variable it's an XML file or response
$sxe->registerXPathNamespace('d', 'urn:schemas-microsoft-com:xml-diffgram-v1');
$result = $sxe->xpath("//NewDataSet");

echo "<pre>";
foreach ($result[0] as $title) {
    print_r($title);
}

有关更多信息,请访问网站: https://vaja906programmingworld.wordpress.com/

For more information visit site: https://vaja906programmingworld.wordpress.com/