Hi.
I`ve got some problems when deserilizing array of objects in one of the web services. The following class was generated by the dotnet-svcutil and during deserialization countField is deserilized properly while the clientsField which is of type clientDetails[] is always null.
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "0.5.0.0")]
//[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.SoapTypeAttribute(Namespace="http://www.example.org/ResellerAPI/")]
public partial class clientDetailsArray
{
private int countField;
private clientDetails[] clientsField;
/// <remarks/>
public int count
{
get
{
return this.countField;
}
set
{
this.countField = value;
}
}
/// <remarks/>
public clientDetails[] clients
{
get
{
return this.clientsField;
}
set
{
this.clientsField = value;
}
}
}As far as I debugged it the source XML structure received from web service is correct and the problem must be with the code responsible for deserilization. When I enable XML debugging and step into the whole process I can find the following piece of code that is theoretically responsible for deserilization of the clientsField and it returns null no matther what:
object Read610_Array() {
// dummy array method
UnknownNode(null);
return null;
}Why is this method generated in such way and how to fix it?