https://bugzilla.novell.com/show_bug.cgi?id=644827
https://bugzilla.novell.com/show_bug.cgi?id=644827#c0 Summary: WSDL not correctly handling multidimensional arrays(jagged arrays) Classification: Mono Product: Mono: Tools Version: 2.8.x Platform: All OS/Version: All Status: NEW Severity: Major Priority: P5 - None Component: monodis AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 Creating a stub out of the Zeus(zxtm) Pool.wsdl is producing methods that return string when they should be returning multidimensional string arrays. Microsofts wsdl.exe generates the correct code: [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://soap.zeus.com/zxtm/1.0/Pool/getNodes", RequestNamespace="http://soap.zeus.com/zxtm/1.0/Pool/", ResponseNamespace="http://soap.zeus.com/zxtm/1.0/Pool/")] [return: System.Xml.Serialization.SoapElementAttribute("nodes")] public string[][] getNodes(string[] names) { object[] results = this.Invoke("getNodes", new object[] { names}); return ((string[][])(results[0])); } Mono wsdl and wsdl2 generate incorrect code: [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://soap.zeus.com/zxtm/1.0/Pool/getNodes", RequestNamespace="http://soap.zeus.com/zxtm/1.0/Pool/", ResponseNamespace="http://soap.zeus.com/zxtm/1.0/Pool/")] [return: System.Xml.Serialization.SoapElement("nodes")] public string getNodes(string[] names) { object[] results = this.Invoke("getNodes", new object[] { names}); return ((string)(results[0])); } Reproducible: Always Steps to Reproduce: 1. Download the Pool.wsdl zeus wsdl 2. run wsdl on it 3. Cry when you get cast errors no matter how you try to utilize methods that return jagged arrays. ;( -- 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
