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

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.

主站蜘蛛池模板: 开封县| 尚义县| 房产| 黎城县| 博白县| 桂阳县| 雷波县| 梅河口市| 长沙市| 外汇| 南乐县| 揭东县| 乐业县| 绿春县| 龙口市| 吉首市| 东安县| 米脂县| 竹北市| 出国| 新昌县| 灵宝市| 奇台县| 红安县| 和政县| 乌兰察布市| 惠安县| 广安市| 阿荣旗| 昂仁县| 湟源县| 驻马店市| 随州市| 桦川县| 丹阳市| 同仁县| 留坝县| 广西| 盘锦市| 东阳市| 台中市|