[Mono-bugs] [Bug 404128] SoapFormatter does not support custom headers

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 26 11:40:25 EDT 2008


User robertj at gmx.net added comment

Robert Jordan <robertj at gmx.net> changed:

           What    |Removed                                         |Added
                 CC|                                                |robertj at gmx.net
           Severity|Blocker                                         |Normal
            Summary|Error in SoapFormatter                          |SoapFormatter does not support custom headers

--- Comment #1 from Robert Jordan <robertj at gmx.net>  2008-06-26 09:40:24 MDT ---
Subject, severity changed. Attached a smaller test case.

using System;
using System.IO;
using System.Runtime.Remoting.Messaging;
using System.Runtime.Serialization.Formatters;
using System.Runtime.Serialization.Formatters.Soap;

class T
        static void Main ()
                SoapFormatter formatter = new SoapFormatter ();

                MemoryStream ms = new MemoryStream();
                Header[] headers = new[] {
                        new Header("A", "B")

                formatter.Serialize(ms, new T (), headers);
                ms.Position = 0;

                object o = formatter.Deserialize(ms);
                Console.WriteLine(o.GetType() == typeof (T));

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list