[Mono-bugs] [Bug 80847][Maj] New - Invalid WSDL for web service methods returning nullables
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Feb 14 08:39:59 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 thisaddressisnotmine+ximian at td.selfip.net.
http://bugzilla.ximian.com/show_bug.cgi?id=80847
--- shadow/80847 2007-02-14 08:39:59.000000000 -0500
+++ shadow/80847.tmp.6660 2007-02-14 08:39:59.000000000 -0500
@@ -0,0 +1,56 @@
+Bug#: 80847
+Product: Mono: Class Libraries
+Version: 1.2
+OS: unknown
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: Sys.Web.Services
+AssignedTo: atsushi at ximian.com
+ReportedBy: thisaddressisnotmine+ximian at td.selfip.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Invalid WSDL for web service methods returning nullables
+
+Description of Problem:
+
+Invalid WSDL generated for web service methods returning nullables
+
+Steps to reproduce the problem:
+1. Create simple web service with method like this:
+
+[WebMethod(Description="Test nullables")]
+public int? GetNull()
+{
+ return null;
+}
+
+2. Start xsp2 and look at generated WSDL.
+
+Actual Results:
+
+<xs:element name="GetNullResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" name="GetNullResult"
+type="xs:int" />
+ </xs:sequence>
+ </xs:complexType>
+</xs:element>
+
+Expected Results:
+
+<s:element name="GetNullResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" name="GetNullResult"
+nillable="true" type="s:int" />
+ </s:sequence>
+ </s:complexType>
+</s:element>
+
+The difference is in nillable="true" attribute.
More information about the mono-bugs
mailing list