[Mono-list] Nullable types in web services

Andreas Färber andreas.faerber at web.de
Wed Jan 17 14:30:04 EST 2007


>>> Here is output from the latest mono + mod_mono using xsp2:
>>> And here is what I've got from IIS and ASP.NET 2.0:
> I'll skip XML for better readability.
>> So, what's the problem? They are exactly equivalent.
> Yes, they are equivalent in XML sense, but wsld.exe from  
> microsoft's SDK
> generate different C# proxies for GetNull method:
> when web service is running under ASP.NET:
> public System.Nullable<int> GetNull()
> and running under xsp2:
> public int GetNull()
>>> So, is there any possibility to make nullable types work in xsp2?
>> Against your expectation, it is already working.
> But I can't get it to work. Could you please explain what I should  
> do to
> get the same results from ASP.NET and xsp2?

In case it's not obvious: Just modify the generated code!

As you said yourself, the XML is fine. Maybe Microsoft is simply  
checking against a hardcoded xsi prefix (the xsp XML had d1p1  
instead). Doesn't Mono have a similar tool you could check?


More information about the Mono-list mailing list