[Mono-bugs] [Bug 76101][Nor] New - Client proxy has incorrect
return type XmlElement instead of DataSet
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Sep 14 06:59:41 EDT 2005
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 scott.barnham at ifgmgt.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76101
--- shadow/76101 2005-09-14 06:59:41.000000000 -0400
+++ shadow/76101.tmp.25540 2005-09-14 06:59:41.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 76101
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Web.Services
+AssignedTo: lluis at ximian.com
+ReportedBy: scott.barnham at ifgmgt.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Client proxy has incorrect return type XmlElement instead of DataSet
+
+Description of Problem:
+
+The client proxy generated by mono for a web service has a return type of
+XmlElement instead of DataSet. This is new to mono 1.1.9.
+
+Steps to reproduce the problem:
+1. A web method that returns a DataSet, e.g.:
+
+[WebMethod]
+public DataSet GetAllContacts()
+{
+}
+
+2. View the web service in a browser and click the link marked "Client
+proxy" (e.g. http://host/MyService.asmx?page=proxy). Look at the return
+type for the web method.
+
+3. Alternatively, add a Web Reference to your VS.NET project then look at
+the Reference.cs file generated for it.
+
+Actual Results:
+
+Under mono 1.1.9:
+
+ public System.Xml.XmlElement GetAllContacts() {
+ object[] results = this.Invoke("GetAllContacts", new object[0]);
+ return ((System.Xml.XmlElement)(results[0]));
+ }
+
+Expected Results:
+
+As generated under mono 1.1.8:
+
+ public System.Data.DataSet GetAllContacts() {
+ object[] results = this.Invoke("GetAllContacts", new object[0]);
+ return ((System.Data.DataSet)(results[0]));
+ }
+
+How often does this happen?
+
+Always. Types such as bool and string are fine as is a custom type I use.
+ DataSet is affected. I have not tried other types.
+
+Additional Information:
+
+Tested on RedHat 9 with mono 1.1.9, xps 1.1.9, mod_mono 1.1.9. If I use
+the proxy generated by mono 1.1.8 to call web services running under 1.1.9,
+it works fine.
More information about the mono-bugs
mailing list