Enumeration in DataContract of WCF

By default Enums are serializable. If we define Enum at service side and use it in Data Contract, it is exposed at the client side. For example, if we have an Enum as below, And we are using it in DataContract as below By default Enum is serialized. So, let us see the default behavior … Continue reading Enumeration in DataContract of WCF

Advertisements

Versioning in WCF Data Contract Part #2: Missing Members

Part #1 of the article can be read here If we have a DataContract Product.cs ServiceContract is as below IService1.cs And Service implementation is as below, Service1.svc.cs Now we have a service. Now at the client side (Say it as client1) we are calling the service as below Program.cs Output Now let us go ahead … Continue reading Versioning in WCF Data Contract Part #2: Missing Members

Versioning in WCF Data Contract Part #1: Adding New Members

DataContract versioning requires when some modification has been done to the existing DataContract exposed to the client from the service or vice versa. If either service or client is changing the schema of DataContract exposed then new version of DataContract come into action and both party involved in communication should be able to accommodate the … Continue reading Versioning in WCF Data Contract Part #1: Adding New Members