i've got this data contract
in the client project i can see the SvcEuroCall.orderitems[] as an array i can add things to, but when i pass the object back to the service the service refuses to see the orderitems of the object.
for the life of me i cant figure out why?? why oh why must it be such a bear, this should NOT be this hard.
Code:
[DataContract]
public class SvcEuroCall
{
[DataMember]
public Guid RequestID{get{return new Guid();}}
[DataMember]
public string OrderID { get; set; }
[DataMember]
public string status { get; set; }
[DataMember]
public string shipment { get; set; }
[DataMember]
public string pallet { get; set; }
[DataMember]
public string parcelid { get; set; }
[DataMember]
public string CC { get; set; }
[DataMember]
public string countryname { get; set; }
[DataMember]
SvcEuroOrderItem[] OrderItems { get; set; }
}
[DataContract]
public class SvcEuroOrderItem
{
[DataMember]
public string SKU { get; set; }
[DataMember]
public int Qty { get; set; }
[DataMember]
public string palletID { get; set; }
[DataMember]
public string MasterShipmentID { get; set; }
}
for the life of me i cant figure out why?? why oh why must it be such a bear, this should NOT be this hard.