?
Solved

WCF REST convert to object

Posted on 2011-03-22
1
Medium Priority
?
434 Views
Last Modified: 2012-08-13
Hello,

I have created a service WCF REST.
I execute my service with this url:
https://www.myweb.com/myservice.svc/ReadClient/const/1/10
And the service return sucesfully a xml with my object

My question is:  When execute this url (service) in .net (c#), what can I convert this xml in my original object?

Thanks!
0
Comment
Question by:david-shm
1 Comment
 
LVL 3

Accepted Solution

by:
KBerger earned 2000 total points
ID: 36985009
Hi,

as REST Services do not expose meta-data to build proxy-classes on, you will have to implement the conversion by yourself. You could do this by using an XmlReader which reads the Xml and rebuilds the objects according to the nodes.
You could also build Deserialization-methods which either consume an XmlDocument or XmlNodes.

Hope that helps you out.

Regards,

Kristof
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In previous Articles, we have discussed how we can upload a file using .asmx web service and isolated storage space. Here, in continuation to the topic, I am going to discuss how we can use WCF for the same purpose. Steps: 1.Create the silverli…
While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question