tags:

views:

19

answers:

2

If I have an object that holds the parameters for my method. I need to change the Object to have an additional property. I have full control over the server, but not over all of the clients. Will this change make those clients break?

I am using a self-hosted service with a binary endpoint.

I am new to WCF so my apologies if this is a silly question.

+1  A: 

I guess you are asking about a class that represents your DataContract.

Learn about DataContract versioning and how various changes in your DataContract affect the compatibility in MSDN

Marek
Thanks. That link contained exactly what I needed to know.
My Other Me
+1  A: 

In short the answer is No, it will not break the client code. The serialized graph of the data contract will deserialize to the available data members matching by their names and assigned through the property setter method. Obviously in this case, your newly added data member will not have value. Since you have full control on the server side code, you just have to make sure this newly added member need to be dealt in such a way that it is meaningful in the new implementation and allow for default/unassigned value.

Fadrian Sudaman