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

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.

主站蜘蛛池模板: 西宁市| 东平县| 那曲县| 张家口市| 汝城县| 海原县| 治多县| 二连浩特市| 盐津县| 蛟河市| 南城县| 军事| 陵川县| 楚雄市| 长治市| 临清市| 铅山县| 兴山县| 白朗县| 乌鲁木齐县| 敖汉旗| 济宁市| 奉贤区| 旅游| 建平县| 南投县| 东安县| 琼中| 廉江市| 乐昌市| 阿城市| 黑河市| 炉霍县| 怀化市| 玉田县| 通渭县| 云霄县| 赤水市| 舟山市| 大悟县| 牡丹江市|