[Mono-list] Nullable types in web services
Atsushi Eno
atsushi at ximian.com
Thu Jan 18 01:41:07 EST 2007
Oleg Deribas wrote:
> Hello,
>
> Andreas Färber said the following on 17.01.2007 21:30:
>
>>> 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!
>
> There are many reasons not to do that. Is it an only possible solution?
>
>> 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?
>
> Sure it have. But mono's wsdl2 tool generates the same result with the
> service running on xsp2:
>
> public int GetNull()
>
> And when web service is running under ASP.NET mono's wsdl2 generates
> just "Error: Cannot cast from source type to destination type."
>
Oh, ok, so it's all about wsdl.exe and in that sense you are right :)
Actually I cooked a fix in System.Xml, but turned out that
some CodeDom love is needed as well. I'll fix them as well.
Atsushi Eno
More information about the Mono-list
mailing list