http://bugzilla.novell.com/show_bug.cgi?id=619542
http://bugzilla.novell.com/show_bug.cgi?id=619542#c2 --- Comment #2 from Atsushi Enomoto <[email protected]> 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 - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
