[Mono-bugs] [Bug 666333] Deserialization fails due to namespace mismatch

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 3 23:49:33 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=666333

https://bugzilla.novell.com/show_bug.cgi?id=666333#c5


--- Comment #5 from Atsushi Enomoto <aenomoto at novell.com> 2011-02-04 04:49:31 UTC ---
It cannot be written within DataContractSerializer, but should use
TypedMessageConverter. I replaced the try block with the lines below:

var tm = TypedMessageConverter.Create (typeof (CheckLoginResponse), "urn:foo");
var m = Message.CreateMessage (MessageVersion.Default, "urn:foo",
XmlReader.Create (new StringReader (xml)));
var clr = (CheckLoginResponse) tm.FromMessage (m);
Console.WriteLine ("clr.playeractiveuser {0} = {1}", clr.playeractiveuser,
clr.playeractiveuser == null ? "null" : clr.playeractiveuser.GetType
().FullName);

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


More information about the mono-bugs mailing list