[Mono-list] Nullable types in web services

Atsushi Eno atsushi at ximian.com
Wed Jan 17 10:49:00 EST 2007


Oleg Deribas wrote:
> 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" />

So, what's the problem? They are exactly equivalent.

> 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?

Against your expectation, it is already working.

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

They are similar only in point that it is about XML serialization.

Atsushi Eno


More information about the Mono-list mailing list