Solved

WCF REST convert to object

Posted on 2011-03-22
1
427 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
KBerger earned 500 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 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