[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

WCF REST convert to object

Posted on 2011-03-22
1
Medium Priority
?
432 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 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

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…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

649 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