http://bugzilla.novell.com/show_bug.cgi?id=619542
http://bugzilla.novell.com/show_bug.cgi?id=619542#c2 --- Comment #2 from Atsushi Enomoto <aenom...@novell.com> 2010-07-08 06:36:19 UTC --- None of those attempts show the expected results so far (switch #ifs around): using System; using System.IO; using System.Runtime.Serialization; using System.ServiceModel.Channels; using System.Text; using System.Xml; public class Tset { public static void Main () { var ms = new MemoryStream (); ms.Write (Encoding.UTF8.GetBytes ("TEST"), 0, 4); #if false var ds = new DataContractSerializer (typeof (MemoryStream)); using (var xw = XmlWriter.Create (Console.Out)) ds.WriteObject (xw, ms); #else var msg = Message.CreateMessage ( //MessageVersion.Default, MessageVersion.None, "urn:foo", ms); #if false Console.WriteLine (msg); #else var wmebe = new WebMessageEncodingBindingElement (); var wme = wmebe.CreateMessageEncoderFactory ().Encoder; var ms2 = new MemoryStream (); wme.WriteMessage (msg, ms2); Console.WriteLine (Encoding.UTF8.GetString ( ms2.GetBuffer (), 0, (int) ms2.Length)); #endif #endif } } -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs