[Mono-bugs] [Bug 80847][Maj] Changed - Invalid WSDL for web service methods returning nullables
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Feb 19 05:39:56 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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80847
--- shadow/80847 2007-02-14 08:39:59.000000000 -0500
+++ shadow/80847.tmp.31878 2007-02-19 05:39:56.000000000 -0500
@@ -2,13 +2,13 @@
Product: Mono: Class Libraries
Version: 1.2
OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
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: ---
@@ -51,6 +51,66 @@
nillable="true" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
The difference is in nillable="true" attribute.
+
+------- Additional Comments From atsushi at ximian.com 2007-02-19 05:39 -------
+ok, I could start from here:
+
+--------
+using System;
+using System.Xml;
+using System.Xml.Schema;
+using System.Xml.Serialization;
+
+public class Test
+{
+ public static void Main ()
+ {
+ XmlReflectionImporter imp = new XmlReflectionImporter ();
+ XmlTypeMapping map = imp.ImportTypeMapping (typeof
+(Test));
+ XmlSchemas schemas = new XmlSchemas ();
+ XmlSchemaExporter exp = new XmlSchemaExporter (schemas);
+ exp.ExportTypeMapping (map);
+ foreach (XmlSchema schema in schemas)
+ schema.Write (Console.Out);
+ }
+
+ public int? Foo { get { return 0; } set { } }
+}
+--------
+
+and then:
+
+--------
+using System;
+using System.Xml;
+using System.Xml.Schema;
+using System.Xml.Serialization;
+using System.Web.Services;
+using System.Web.Services.Description;
+using System.Web.Services.Protocols;
+
+public class Test
+{
+ public static void Main ()
+ {
+ ServiceDescriptionReflector r =
+ new ServiceDescriptionReflector ();
+ r.Reflect (typeof (Test), null);
+ foreach (ServiceDescription sd in r.ServiceDescriptions)
+ foreach (XmlSchema xs in sd.Types.Schemas)
+ xs.Write (Console.Out);
+ }
+
+ [WebMethod(Description="Test nullables")]
+ [SoapDocumentMethod (Use = SoapBindingUse.Literal)]
+ public int GetNull()
+ {
+ return null;
+ }
+}
+--------
+
More information about the mono-bugs
mailing list