Hi All, Can anyone please tell me when should I use MessageContracts and when should I use DataContracts and why ? As I write my wcf service , I always use DataContract but don't know the use of MessageContracts . Please someone elaborate..
+2
A:
Use Message Contracts when you meed more control. In particular, to specify Headers.
John Saunders
2009-07-06 07:55:11
thanx John , are there any other advantages of Message Contracts over DataContracts ?
Praveen
2009-07-06 09:10:15
Nothing else, as far as I know.
John Saunders
2009-07-06 11:13:02