I was working on a WCF service/client application when I decided to make a change to one of my service contract operations.
I changed a property type in one of my data contract data members from List<CustomObject> to IEnumerable<CustomObject> Of course I was making several changes at the time, and didn't realize until a fair amount of time later that this would not serialize correctly.
I have a theory that adding "[ServiceKnownType(typeof(CustomObject))]" right after the ServiceContract declaration will allow the service/client to serialize and deserialize correctly, but I'll have to wait test it out when I have time.
If anyone gets a chance to test it out before I can, please, comment below and let me know how it worked for you.
No comments:
Post a Comment