[Mono-bugs] [Bug 80551][Nor] New - XML WebServices in mono don't expose correctly Nullables so as to be consumed by proxies
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jan 18 16:49:19 EST 2007
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 knocte at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80551
--- shadow/80551 2007-01-18 16:49:19.000000000 -0500
+++ shadow/80551.tmp.32557 2007-01-18 16:49:19.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 80551
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com
+ReportedBy: knocte at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: XML WebServices in mono don't expose correctly Nullables so as to be consumed by proxies
+
+Am going to paste the description posted here[1]:
+
+Trying to test a mono web service with simple method like this:
+
+[WebMethod(Description="Test nullables")]
+public int? GetNull()
+{
+ return null;
+}
+
+Here is output from the latest mono + mod_mono using xsp2:
+
+<?xml version="1.0" encoding="utf-8"?>
+<int d1p1:nil="true"
+ xmlns:d1p1="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://localhost/webservice/WebService.asmx"/>
+
+And here is what I've got from IIS and ASP.NET 2.0:
+
+<?xml version="1.0" encoding="utf-8" ?>
+ <int xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xsi:nil="true"
+ xmlns="http://localhost/webservice/WebService.asmx" />
+
+
+Result is that in VS 2005 web reference this method has plain Int32
+result value type instead of nullable Int32.
+
+They are equivalent in XML sense, but wsld.exe from microsoft's SDK
+generate different C# proxies for GetNull method:
+
+when web service is running under ASP.NET:
+public System.Nullable<int> GetNull()
+
+and running under xsp2:
+public int GetNull()
+
+Mono's wsdl2 tool generates the same result with the
+service running on xsp2:
+
+public int GetNull()
+
+[1] http://lists.ximian.com/pipermail/mono-list/2007-January/033929.html
More information about the mono-bugs
mailing list