serialize/deserialize object under different name spaces

  • Thread starter Thread starter Vikram
  • Start date Start date
V

Vikram

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
 
(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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top