[Mono-bugs] [Bug 62591][Cri] New - Web services client crashes

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 5 Aug 2004 18:04:29 -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 ivoras@fer.hr.


--- shadow/62591	2004-08-05 18:04:29.000000000 -0400
+++ shadow/62591.tmp.18927	2004-08-05 18:04:29.000000000 -0400
@@ -0,0 +1,59 @@
+Bug#: 62591
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: Same behaviour on WinXP and FreeBSD
+Status: NEW   
+Severity: 040 One week
+Priority: Critical
+Component: Sys.Web.Services
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ivoras@fer.hr               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Web services client crashes
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+A web service client, using stubs generated with the wsdl tool, crashes
+when run with mono runtime, but not with MS .net runtime.
+Steps to reproduce the problem:
+1. use wsdl.exe tool to generate stubs for a PHP-PEAR SOAP service
+2. compile
+3. run executable
+Actual Results:
+Unhandled Exception: System.NullReferenceException: Object reference not set to
+an instance of an object
+in <0x000b2> SOAP_TestService:adder (int,int)
+in <0x00049> MainClass:Main (string[])
+Expected Results:
+A running program.
+How often does this happen? 
+Every time.
+Additional Information:
+The SOAP_TestService class referenced above is generated by Mono's wsdl.exe
+and unmodified (by me). The executable runs fine using MS .net runtime on
+WinXP but crashes with above error with Mono runtime both on WinXP and FreeBSD.
+The adder(int,int) method is:
+    [return: System.Xml.Serialization.SoapElement("result")]
+    public virtual int adder(int num1, int num2) {
+        System.Object[] results = this.Invoke("adder", new object[] {
+            num1,
+            num2});
+        return ((int)(results[0]));
+    }
+The error "line at" points at the begining of above declaration :(