Hello,

Does mono support nullable types in web services? I'm trying to test it
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.
So, is there any possibility to make nullable types work in xsp2?

BTW, I've found similar topic dated 2003:
http://thread.gmane.org/gmane.comp.gnome.mono.devel/3269/focus=3272

-- 
Oleg

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to