肥皂反应deserilize [英] Soap Response deserilize
本文介绍了肥皂反应deserilize的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从服务器获得SOAP响应,并将其保存为我的应用程序中的字符串。现在我需要反序列化SOAP消息。
示例响应
Hi,
I have below SOAP response from the server and save it as string in my application. Now I need to deserialize the SOAP message.
Sample responce
"HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version=""1.0"" encoding=""utf-8""?>
<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>
<getRetailPopupFiveResponse xmlns=""http://myDomain.com/"">
<getRetailPopupFiveResult>
<AccoutNumber>string</AccoutNumber>
<AccountStatus>string</AccountStatus>
<CustomerIdentifire>string</CustomerIdentifire>
<CASAAccounts>string</CASAAccounts>
<LoanFlag>string</LoanFlag>
<AmountODGranted>string</AmountODGranted>
<NumberofFDAccounts>string</NumberofFDAccounts>
<LastTransaction>string</LastTransaction>
<MailingAddress>string</MailingAddress>
<MobileNumber>string</MobileNumber>
<CustomerEmail>string</CustomerEmail>
<CustomerName>string</CustomerName>
<CustomerNIC>string</CustomerNIC>
<DateOfBirth>string</DateOfBirth>
<AccountOpenBranch>string</AccountOpenBranch>
<MothersName>string</MothersName>
<CustomerSegment>string</CustomerSegment>
<ErrorCode>string</ErrorCode>
</getRetailPopupFiveResult>
</getRetailPopupFiveResponse>
</soap:Body>
</soap:Envelope>"
我需要将SOAP tage保存到字符串中。任何人都有这个想法。
例如:AccoutNumber =12345
ErrorCode =009
谢谢
I need to save SOAP tage in to strings. any one have an idea.
Eg: AccoutNumber = "12345"
ErrorCode = "009"
Thanks
推荐答案
你有解决方案:
https://msdn.microsoft.com/en-us/library/wkyt1t1f% 28v = vs.110%29.aspx [ ^ ]
There you have the solution:
https://msdn.microsoft.com/en-us/library/wkyt1t1f%28v=vs.110%29.aspx[^]
这篇关于肥皂反应deserilize的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文