I am trying to use the following class in a Windows Communication Foundation project written in Visual Studio 2012:
[DataContract]
public class SimCoilData : SimInventoryItemData
{
[DataMember]
public UnitTemperature? RequiredCoolingHotspot { get; set; }
[DataMember]
public UnitTemperature? RequiredHeatingColdspot { get; set; }
[DataMember]
public UnitTemperature? HeatingHotspotLimit { get; set; }
[DataMember]
public TimeSpan? TimeToRequiredColdspot { get; set; }
[DataMember]
public TimeSpan? TimeToRequiredCoolingHotspot { get; set; }
[DataMember]
public TimeSpan? TimeToHeatingHotspotLimit { get; set; }
[DataMember]
public UnitLength Gauge { get; set; }
[DataMember]
public UnitLength Width { get; set; }
[DataMember]
public double[] Temperatures { get; set; }
public SimCoilData() : base()
{
}
}
Before the addition of the Temperatures array, data was being exchanged well between the server and the client. I added the Temperatures array, rebuilt the server application, and ran it. Then, in the client project, I updated the service reference and rebuilt the project. When I run the client, I get an error message that a meaningless reply was received, which could be caused by a few things, including a data contract mismatch. I have verified that the array is being populated on the server side. What is the correct procedure for adjusting my client application to accept the array?