You are currently offline, waiting for your internet to reconnect

BUG: Incorrect Results Occur When a Web Service Returns an Array of Size 0

This article was previously published under Q330065
This article has been archived. It is offered "as is" and will no longer be updated.
If you have a Web service that returns object arrays of size 0, the parameter is not deserialized correctly when the client receives the response.
This problem occurs because deserializer does not deserialize the parameter correctly if the array is empty.
To work around this problem use an end element for empty arrays as shown in the following code sample:
<soapenc:Array id="id5" soapenc:arrayType="xsd:anyType[0]">
A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to systems that are experiencing this specific problem.

To resolve this problem immediately, download the fix by clicking the download link later in this article or contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site: Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date          Time   Version    	  Size   File name     ---------------------------------------------------------------04-Oct-2002   18:39  1.0.3705.365    1,298,432   System.xml.dll				
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Article ID: 330065 - Last Review: 10/26/2013 17:41:29 - Revision: 1.2

Microsoft .NET Framework Software Development Kit 1.0

  • kbnosurvey kbarchive kbhotfixserver kbqfe kbbug KB330065