If this is about interacting with a SOAP service please use
Add Service Reference or wsdl.exe.
If this is just about parsing the XML, assuming you've got the SOAP response into an XDocument named soapDocument:
XNamespace ns = "http://ASR-RT/";
var objIns =
from objIn in soapDocument.Descendants(ns + "objIn")
let header = objIn.Element(ns + "transactionHeaderData")
select new
{
WebsiteId = (int) header.Element(ns + "intWebsiteId"),
VendorData = header.Element(ns + "strVendorData").Value,
VendorId = header.Element(ns + "strVendorId").Value,
CCN = (int) objIn.Element(ns + "intCCN"),
SurveyResponse = objIn.Element(ns + "strSurveyResponseFlag").Value,
};
That will give you an IEnumerable of anonymous types you deal with as fully strongly typed objects within that method.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…