[Mono-bugs] [Bug 78042][Nor] Changed - SOAP list result error. Mono expects response namespace, but it shouldn't

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Apr 10 07:42:38 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by krzymkowski at kontinuum.pl.


--- shadow/78042	2006-04-10 07:29:41.000000000 -0400
+++ shadow/78042.tmp.31922	2006-04-10 07:42:38.000000000 -0400
@@ -102,6 +102,26 @@
         public processlistrespelem[] processlist()
             object[] results = this.Invoke("processlist", new object[0]);
             return ((processlistrespelem[])(results[0]));
+------- Additional Comments From krzymkowski at kontinuum.pl  2006-04-10 07:42 -------
+I've just found out that the code works (meaning  under mono if I add
+Namespace="" to method attributes:
+[return: System.Xml.Serialization.XmlArrayAttribute("out", Namespace="",
+Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]
+Though the same code throws an exeption:
+Unhandled Exception: System.InvalidOperationException: Method
+Service.processlist can not be reflected. --->
+System.InvalidOperationException: There was an error reflecting
+'processlistResult'. ---> System.InvalidOperationException: The Form
+property may not be 'Unqualified' when an explicit Namespace property
+is present.
+The solution that works under both Mono and .NET is:
+[return: System.Xml.Serialization.XmlArrayAttribute("out", Namespace="",
+Form=System.Xml.Schema.XmlSchemaForm.Qualified, IsNullable=true)]

More information about the mono-bugs mailing list