Dan Smithers wrote: > OK, I've got SOAP working. I can construct the stream using > SoapFormatter.Serialize, but I can't get Deserialize to reconstruct my > data structure. Is there any trick to this that I haven't spotted?
There is no trick. One difference between Binary and SOAP is the inability of the latter to store more than one object graph, i.e. calling Serialize twice per stream will produce something that cannot be deserialized. This is by design. Robert > > thanks > > dan > > Dan Smithers wrote: >> Robert Jordan wrote: >>> Dan Smithers wrote: >>>> Hi, >>>> >>>> I am trying to use serialization into a MemoryStream to construct >>>> messages to pass between processes. >>>> >>>> I have _sort_ of got it working with the BinaryFormatter, but I would >>>> like to send a human readable version for testing. >>>> >>>> Can anyone confirm that the SoapFormatter is implemented in Mono 1.2.6. >>>> Is it just a simple replacement for the BinaryFormatter? >>>> >>>> Currently I get the error >>>> type or namespace 'Soap' does not exist in >>>> 'System.Runtime.Serialization.Formatters' >>>> >>> You need to add a reference to >>> >>> System.Runtime.Serialization.Formatters.Soap.dll >>> >> doh! >> >> thanks >> _______________________________________________ >> Mono-list maillist - [email protected] >> http://lists.ximian.com/mailman/listinfo/mono-list >> > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
