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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
