[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.

http://bugzilla.ximian.com/show_bug.cgi?id=78562

--- 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: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.Web.Services
+AssignedTo: lluis at ximian.com                            
+ReportedBy: informatique.internet at fiducial.fr               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+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:
+1. 
+Here's the proxy method :
+        [System.Web.Services.Protocols.SoapHeaderAttribute("contextValue",
+Required=false)]
+       
+[System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:zimbraAccount/SearchRequest",
+ResponseElementName="SearchResponse", RequestNamespace="urn:zimbraMail",
+ResponseNamespace="urn:zimbraMail",
+ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped,
+Use=System.Web.Services.Description.SoapBindingUse.Literal)]
+        [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 :
+SearchRequest("is:unread","1","dateDesc","message","1");
+
+3. 
+
+Actual Results:
+
+The xml sent (as ethereal said) is :
+<SearchRequest limit="is:unread" sortBy="1" types="dateDesc" read="message"
+xmlns="urn:zimbraMail"><query>is:unread</query></SearchRequest>
+
+
+Expected Results:
+the result in MS.NET is
+<SearchRequest limit="1" sortBy="dateDesc" types="message" read="1"
+xmlns="urn:zimbraMail"><query>is:unread</query></SearchRequest>
+
+How often does this happen? 
+always
+
+Additional Information:


More information about the mono-bugs mailing list