DataContract VS消息协定协定、消息、DataContract、VS

2023-09-03 02:19:41 作者:桃花下浅酌

虽然我看了一下消息协定的一些文章,但我不能够融为一体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.

 
精彩推荐
图片推荐