这里是我的SuperDuperService样本SOAP响应:使用C#和的XDocument /的XElement解析SOAP响应
<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>
出于某种原因,当我试图抓住的“结果”的后代或元素,我得到空。它与名字空间有什么关系?有人可以提供一个解决方案来检索这个结果吗?
出于某种原因,从例如list.Count()方法上面不会为我存在? Im使用VS2010 .net 4 – 2011-06-04 19:25:32