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

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.

主站蜘蛛池模板: 吉安县| 朔州市| 汤原县| 镇沅| 西昌市| 周宁县| 长泰县| 新密市| 华池县| 祁连县| 昂仁县| 安宁市| 根河市| 中牟县| 漠河县| 舒城县| 奉化市| 广安市| 大洼县| 金塔县| 光泽县| 崇礼县| 巩义市| 乌审旗| 屏东市| 庄浪县| 台安县| 彭泽县| 聂拉木县| 丰城市| 葵青区| 九江市| 焦作市| 西安市| 县级市| 雷山县| 沾益县| 准格尔旗| 溧水县| 定南县| 武宁县|