官术网_书友最值得收藏!

Message exchanging patterns

As we have already discussed, the web services communicate with each other and the other programs by sending messages. If we consider two SOAP processing nodes, the communication pattern between the two entities can be defined as a message exchanging pattern (MEP). The primary message exchanging patterns are:

  • Request-response
  • Fire and forget

In a request-response pattern, when a source entity (service requester) transmits a message to a destination (service provider), the provider should respond to the requester. This is the most commonly used message exchanging pattern and we will use this in most of the examples in this book.

In the following diagram, a service requester sends a SOAP request message to a service provider:

Message exchanging patterns

Upon receiving the SOAP request message, the service provider responds with a SOAP response as shown in the following diagram:

Message exchanging patterns

When a response to a request message is not expected from a web service (or service provider), it is known as a fire and forget message exchange pattern. For example, if we send a ping request to a web service, we do not expect a response message back.

主站蜘蛛池模板: 平利县| 家居| 中卫市| 通海县| 高雄市| 思茅市| 平邑县| 行唐县| 万盛区| 泗水县| 车险| 嘉峪关市| 湟中县| 信阳市| 南投县| 宁晋县| 夏津县| 伊通| 五台县| 台州市| 沐川县| 疏勒县| 辽阳市| 聊城市| 南昌县| 桑植县| 丹巴县| 山丹县| 丹凤县| 永宁县| 邓州市| 诸城市| 卢氏县| 宁城县| 革吉县| 安丘市| 栾城县| 开江县| 保靖县| 阳高县| 同心县|