Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
XML
"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>"	



I need to save SOAP tage in to strings. any one have an idea.

Eg: AccoutNumber = "12345"
ErrorCode = "009"


Thanks
Posted

1 solution

 
Share this answer
 
Comments
Soft009 24-Feb-15 1:59am    
In that example we have to give the soap file. But in my case SOAP response is save as a string.
stibee 24-Feb-15 2:02am    
http://stackoverflow.com/questions/1879395/how-to-generate-a-stream-from-a-string

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900