[Mono-bugs] [Bug 58007][Blo] New - Web.Services returning null when XmlNode[] object casted to object from proxy code.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 3 May 2004 19:17:24 -0400 (EDT)
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 grompf@sublimeintervention.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58007
--- shadow/58007 2004-05-03 19:17:24.000000000 -0400
+++ shadow/58007.tmp.17393 2004-05-03 19:17:24.000000000 -0400
@@ -0,0 +1,71 @@
+Bug#: 58007
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details: Windows XP / Mac OSX 10.3 & Debian/unstable
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: Sys.Web.Services
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: grompf@sublimeintervention.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Web.Services returning null when XmlNode[] object casted to object from proxy code.
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+
+I have a wsdl consumed web method that consumes a web service and casts the response to an
+object:
+
+[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:TMSWebServices:
+xtvdWebService#download", RequestNamespace="urn:TMSWebServices",
+ResponseNamespace="")]
+ public object download(string startTime, string endTime) {
+ System.Object[] response = this.Invoke("download", new object[] {
+ startTime,
+ endTime});
+ Console.WriteLine(response.Length);
+ Console.WriteLine(response[0]);
+ return (object)response[0];
+ }
+
+I manually added the Console writes to debug ( FWIW I dont have mono-debug working at the
+moment ) and its telling me that response.Length is 1, and response[0] is null.
+
+(The object in the Microsoft implementation is a System.Xml.XmlNode[]). When I run this in
+mono; two things happen:
+
+First, its a fraction the speed of the microsoft implementation to download the data
+Second, the response is null.
+
+The exact same code and method works fine with the Microsoft .NET framework. Doing pcap
+dumps I can see that its making the request and getting the data back to the Invoke method, it
+just never seems to return it back into the object[] array.
+
+
+Steps to reproduce the problem:
+1. Get a TMS Webservices account by going to http://labs.zap2it.com/ and using the certificate
+code (DQYN-JQ2N-IBUT)
+2. Go to the labs forum (http://bb.labs.zap2it.com) and download the xtvdWebService.cs file
+there (this is the file I'm using)
+3. Write a small wrapper to call it and observe the fact that the return value is null.
+
+Actual Results:
+
+The mono web.services implementation returns a null value from this.Invoke.
+
+Expected Results:
+
+The microsoft .net framework (v1.0 and v1.1) return a System.Xml.XmlNode[] casted to an object
+by the wrapper.
+
+How often does this happen?
+
+Every time.
+
+Additional Information: