[Mono-bugs] [Bug 78562][Maj] New - Problem with Element/Attribute Serialization order

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 1 07:20:05 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 informatique.internet at fiducial.fr.


--- shadow/78562	2006-06-01 07:20:05.000000000 -0400
+++ shadow/78562.tmp.27839	2006-06-01 07:20:05.000000000 -0400
@@ -0,0 +1,69 @@
+Bug#: 78562
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: Sys.Web.Services
+AssignedTo: lluis at ximian.com                            
+ReportedBy: informatique.internet at fiducial.fr               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Problem with Element/Attribute Serialization order
+Description of Problem:
+I'm writing a client for a webservice (that doesn't have a wsdl).
+There's a problem with Element and attribute serialization order...
+Steps to reproduce the problem:
+Here's the proxy method :
+        [System.Web.Services.Protocols.SoapHeaderAttribute("contextValue",
+ResponseElementName="SearchResponse", RequestNamespace="urn:zimbraMail",
+        [return: System.Xml.Serialization.XmlElementAttribute("m")]
+        public Message[] SearchRequest(string query,
+[System.Xml.Serialization.XmlAttributeAttribute()] string limit,
+[System.Xml.Serialization.XmlAttributeAttribute()] string sortBy,
+[System.Xml.Serialization.XmlAttributeAttribute()] string types,
+[System.Xml.Serialization.XmlAttributeAttribute()] string read) {
+            object[] results = this.Invoke("SearchRequest", new object[] {
+                query,
+                limit,
+                sortBy,
+                types,
+                read});
+            return ((Message[])(results[0]));
+        }
+2. I call the method with :
+Actual Results:
+The xml sent (as ethereal said) is :
+<SearchRequest limit="is:unread" sortBy="1" types="dateDesc" read="message"
+Expected Results:
+the result in MS.NET is
+<SearchRequest limit="1" sortBy="dateDesc" types="message" read="1"
+How often does this happen? 
+Additional Information:

More information about the mono-bugs mailing list