小编Bil*_*Lee的帖子

使用LINQ to XML来解析SOAP消息

我正在使用C#在Linq中加速XML并试图解析以下消息并且似乎没有取得多大进展.这是肥皂消息我不确定我是否需要使用命名空间.这是我想要格式化的SOAP消息.任何帮助将不胜感激.我试图提取值.谢谢.

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Body>
  <Lookup xmlns="http://ASR-RT/">
   <objIn>
    <transactionHeaderData>
     <intWebsiteId>1000</intWebsiteId>
     <strVendorData>test</strVendorData>
     <strVendorId>I07</strVendorId>
    </transactionHeaderData>
    <intCCN>17090769</intCCN>
    <strSurveyResponseFlag>Y</strSurveyResponseFlag>
   </objIn>
  </CCNLookup>
 </soap:Body>
</soap:Envelope>
Run Code Online (Sandbox Code Playgroud)

c# soap linq-to-xml

5
推荐指数
2
解决办法
7286
查看次数

标签 统计

c# ×1

linq-to-xml ×1

soap ×1