[Mono-list] Recursive XML serialization? XML serialization of cyclic objects?

Atsushi Eno atsushi at ximian.com
Fri Jan 12 09:10:35 EST 2007


Andrés G. Aragoneses [ knocte ] wrote:
> Robert Jordan escribió:
>>> How can I send "myObject" via XML webservice for consumption? I am aware
>>> that this is not possible to be XML-serialized with .NET1.1 but, can I
>>> do it with 2.0 or Indigo?
>> I'm not aware of any Web Service standard allowing that
>> kind of cycles.
> 
> Indigo (WCF) seems to support it! :
> 
> http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/4e76b309c00eaf49/9235fd20edc55d7f#hdropenedd02799e0c3b43525
> 
> I will then be eager for olive to be released :D

It is possibly only with NetDataContractSerializer and cannot be
done with DataContractSerializer. Since NetDataContractSerializer
sucks in general (there is no point of using it instead of runtime
serialization), the priority is low at my hands. Indigo's "design
by contract" concept is becomes almost implicit (== practically
broken) when ISerializable objects are involved.

Probably you could try runtime serialization with Soap formatter:
System.Runtime.Serialization.Formatters.Soap

Atsushi Eno


More information about the Mono-list mailing list