wcf - why message contract if we can achieve through datacontract and security -
message contract can use when have pass authentication detail soap header instead passing paratmeter in datacontract ex. license key or user credentials. passing parameter not secure. can secure datacontract using security(transport or message). why need messagecontract? difference bewteen message contract , data contract/
"message contract has full control on soap message , can add protection level , message can encrypted , secure. signing or encrypting soap header information. mixing message , data contracts cause runtime error when generate wsdl service."
Comments
Post a Comment