ASP.NET Web Services (ASMX) in .NET 2.0 introduces support for
nullable types. In .NET 1.0 and 1.1, the framework didn't
xsi:nil for value types because, as we know, value types can't
be set to null. This commonly caused interop problems, particularly
with J2EE applications.
The following simple web service shows how a method with a
This produces the following WSDL fragment:
The nillable attribute indicates that it is valid for
the <value> element to be empty. In that case, the
service will set value to null.