DataContract VS消息协定 [英] DataContract vs Message Contract
问题描述
虽然我看了一下消息协定的一些文章,但我不能够融为一体prehend什么是真正的利用消息协定。我可以使用邮件conract代替Datacontract或补充Datacontract。
Though I have read some articles about message contract, but I am not able to comprehend what is the real use of message contract. Can I use Message conract instead of Datacontract or in complement to Datacontract.
推荐答案
一个 DataContract 是中暴露和由服务所支持的类型的描述。一个 MessageContract 是一个抽象的概念上的SOAP消息,可以让你明确地规定了基本的结构消息。
A DataContract is a description of a type that is exposed and supported by your service. A MessageContract is an abstraction over a SOAP message that allows you to explicitly dictate the structure of the underlying message.
这意味着它们是互相恭维,并服务于不同的目的。
They are meant to compliment each other and serve different purposes.
这篇关于DataContract VS消息协定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!