[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

serialize/deserialize object under different name spaces

Vikram

7/22/2008 11:08:00 AM

I have a class which is exposed by web services as part of different
namespace. Now I want to serialize it and deserialize object of class 'C1'
under namespace A1 to class 'C1' under namespace A2.

How can it be done?

Thanks
1 Answer

Marc Gravell

7/23/2008 7:27:00 AM

0

(btw, can you clarify whether you mean C# namespaces, typical from
consuming the same original type from different web-services; or wsdl
namespace, i.e. two different originating types that happen to look
similar-ish?)

It is a pain... one option is the /sharetypes toggle on wsdl.exe, but
then you need to reference all your web-services from the one command.

This is where data-contracts make a better solution; they are much more
wire compatible...

Marc