Why do we need MessageContract when DataContract can do the job ?

 Posted by Akiii on 4/4/2012 | Category: WCF Interview questions | Views: 5140 | Points: 40
Answer:

When we need a higher level of control over the message, such as sending custom SOAP header, then we can use MessageContract instead of DataContract . But in general cases, most of the messaging needs can be fulfilled by DataContracts.




Thanks and Regards
Akiii


| Alert Moderator 

Comments or Responses

Login to post response