简体   繁体   English

什么是消息交换模式?

[英]What is the Message Exchange Patterns?

Can someone please explain what the MEP is? 有人可以解释一下MEP是什么吗? I can't grasp the concept. 我无法理解这个概念。

From what I figure, is just a concept for two parties to understand each other (ie agree on a type of format that the messages they exchange between them must have). 从我的角度来看,这只是两方能够相互理解的概念(即,同意他们之间交换的消息必须具有的一种格式类型)。

Is this it, or is there more? 是这个,还是还有?

In the context of SOAP, it is used to define the behavior of an operation; 在SOAP上下文中,它用于定义操作的行为。 whether it takes an input, returns an output, and how exceptions are handled. 是否需要输入,返回输出以及如何处理异常。 This is defined in the wsdl. 这在wsdl中定义。 See the pattern attribute of the operation element in the example wsdl snippet below (taken from Wikipedia ): 请参阅下面的示例wsdl片段(摘自Wikipedia )中的operation元素的pattern属性:

<interface name="RESTfulInterface">
  <operation name="Get" pattern="http://www.w3.org/ns/wsdl/in-out">
    <input messageLabel="In" element="tns:request"/>
    <output messageLabel="Out" element="tns:response"/>
  </operation>
</interface>

In this service, the operation takes an input and returns and output (in-out). 在此服务中,操作接受输入,然后返回并输出(输入输出)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM