Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 22 Jul 2008 04:08:00 -0700,    group: microsoft.public.dotnet.framework        back       


serialize/deserialize object under different name spaces   
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
date: Tue, 22 Jul 2008 04:08:00 -0700   author:   Vikram

Re: serialize/deserialize object under different name spaces   
(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
date: Wed, 23 Jul 2008 08:26:45 +0100   author:   Marc Gravell

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us