When should I use Message Contracts instead of DataContract and why?

Can someone tell me when to use MessageContracts and when should I use DataContracts and why? When I write my wcf service, I always use a DataContract, but don’t know how to use MessageContracts. Please specify.

+6
wcf
source share
1 answer

Use Messaging Contracts when you need more control. In particular, to indicate headers.

+4
source share

All Articles