【发布时间】:2013-06-23 12:24:17
【问题描述】:
我正在创建连接到 Web 服务的 php 页面,并将显示来自 Web 服务的结果, Web 服务响应的 xml 如下所示:
<GetUserResponse xmlns="http://the web service">
<GetUserResult>
<xsd:schema>schema</xsd:schema>xml
</GetUserResult>
</GetUserResponse>
我需要知道我从服务中获得的 xml 内容, 以及如何处理或显示在我的页面中?
已解决
我能够使用以下方法解决它:
$xml =simplexml_load_string($result);
【问题讨论】:
标签: php xml web-services soap schema