Converting from One Class to another Class using Xml Serialization in C#
Posted
by nrk
on Stack Overflow
See other posts from Stack Overflow
or by nrk
Published on 2009-11-02T07:11:21Z
Indexed on
2010/03/08
2:12 UTC
Read the original article
Hit count: 458
Hi,
In our project we are consuming WCF webservices exposed at Central location as services with basicHttpBinding.
In client desktop application we need consume those webservices. I am able to generate proxy class using WSDL.exe.
But, I need to convert data/class given by the webservice into my local class, for that now I am xmlserialzing those class/objects given by webservice and deserializing into my local classes as both classes schema matches exactly same.
Is there any better way that I can follow? or Do I need to assign each property from one class to another?
thanks nRk.
© Stack Overflow or respective owner