I'm not sure this has been covered before. I did search, but not sure that any of those responses apply: I'm relatively new to WCF.
I have the following classes: PostAddress, EmailAddress, PhoneNumber, ContactInformation and, Person. The ContactInformation contains each a List<PostAddress>, List<EmailAddress>, List<PhoneNumber> property. The Person
class has a ContactInformation property.
When I pass my Person object to my WCF service, my ContactInformation Lists values are null. For example:
I create an address with: street, city, state, zip, country and add it to my List<PostAddress>
I add the list to the Person's ContactInformation's List<PostAddress> Property
I pass it to the WCF Service. At that time, I have this:
Person.ContactInformation.Addresses.Count = [the number of addresses in the list]
Person.ContactInformation.Addresses[index].property = null
My service inferface looks like this (I haven't fully sketched it all out yet):
I'm using Visual Studio Ultimate 2010/.NET 4 on Windows 7 Professional Edition if that
View Complete Post