【发布时间】:2010-10-21 06:24:45
【问题描述】:
这是来自我的 SuperDuperService 的示例肥皂响应:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<MyResponse xmlns="http://mycrazyservice.com/SuperDuperService">
<Result>32347</Result>
</MyResponse>
</soap:Body>
</soap:Envelope>
由于某种原因,当我尝试获取“结果”的后代或元素时,我得到了 null。它与命名空间有关吗?有人可以提供一个解决方案来从中检索 Result 吗?
【问题讨论】: