Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my project I consumed a webservice, which electronically signs the pdf documents. So I got the response from web method as SOAP object as follows.

   soap:Envelope [ xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ ]
|
+  soap:Body
 |       
 + ns2:callArgsResponse [ xmlns:ns2=http://webservice.api.cabaret.com/ ]
   |
   + return [ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:type=ns2:map ]
     |
     + entries
             |
             + name
                  | 
                  name
             + value [ xmlns:xs=http://www.w3.org/2001/XMLSchema xsi:type=xs:string ]
                  |
                  1801.pdf
     + entries
             |
             + name
                  |
                  content
             + value [ xmlns:xs=http://www.w3.org/2001/XMLSchema xsi:type=xs:base64Binary ]
                  | 
                  JVBERi0xLjUNCiXi48/TDQo2NiAwIG9iag0KPDwNCi9MaW5lYXJpemVkIDENCi9MIDQzNzkxNiAgICANCi9IIF


My concern is how to read this object? The object comes in "XmlNode[]" type.
What will be the best and generic way ,so that i can read the values of "entries" from response object?

What I have tried:

I tried to deserialize the object but not able to do it. I can do it by traversing the node one by one.
I want to do it by optimize way. How can i achieve it?
Posted
Comments
Sinisa Hajnal 18-Mar-16 3:30am    
You should be able to deserialize Soap response to an object. Maybe you lack proper definition? Other then that, you can traverse nodes as in any other XmlDocument.
SURAJ-CDAC 18-Mar-16 6:05am    
That's my question,how I deserialize above SOAP response object?
[no name] 29-Mar-16 3:25am    
try SOAP serializer and deserialzer

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