Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solicit response pattern and its usage

I was reading about message exchange patterns (MEP) in web services.
I came across a pattern called Solicit Response.

I googled it but did not find much information about it and its usage.
Can anyone give me the details about this and its usage scenarios.

Thanks in advance.

like image 938
Newbie Avatar asked Jun 11 '12 09:06

Newbie


2 Answers

A solicit/response operation is an operation in which the service endpoint sends a message and expects to receive an answering message in response.

enter image description here

  • This is the opposite of the request/response operation since the service endpoint is initiating the operation (soliciting the client), rather than responding to a request.
  • Solicit/response is similar to notification messaging, except that the client is expected to respond to the Web service.
  • With this type of messaging the element first declares an tag and then a message definition – exactly the reverse of a request/response operation.

An example of this operation might be a service that sends out order status to a client and receives back a receipt.

like image 108
TeaCupApp Avatar answered Oct 17 '22 01:10

TeaCupApp


The solicit-response operation includes one output element, which is the server's request to the client, followed by one input element, which is the client's response back to the server.

Figure: The Solicit-response message pattern
enter image description here

Sample WSDL operation type for solict/response. This operation consists of one output message and one input message.

<operation name="weatherUpdateRenew">
  <output message="tns:RenewRequest"/>
  <input message="tns:RenewResponse"/>
</operation>

Source

like image 45
Premraj Avatar answered Oct 17 '22 03:10

Premraj