Solved

WCF REST convert to object

Posted on 2011-03-22
1
425 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 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
jsonp wcf cross domain 2 196
WSD and Laserjet P2035n and Windows 7 20 361
jquery, wcf 1 56
How to call weather service by using asmx? 4 52
This tutorial will show you how to add an attribute to an XML (http://en.wikipedia.org/wiki/XML) stream returned from a Windows Communication Foundation (http://en.wikipedia.org/wiki/Windows_Communication_Foundation) (WCF) Web Service.  Some knowled…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

679 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