Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section explains, through an example scenario, how the Scatter-Gather EIP can be implemented using WSO2 ESB. The following topics are covered:

Table of Contents

...

Simulating the sample scenario

  1. Use a SOAP client like SoapUI to send the following request to the ScatterGatherProxy service.

    Code Block
    languagehtml/xml
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.samples">  
       <soapenv:Header/>  
       <soapenv:Body>  
          <ser:getSimpleQuote>  
             <ser:
  2. symbol>Foo<
  3. symbol>foo</ser:symbol>  
          </ser:getSimpleQuote>  
       </soapenv:Body>  
    </soapenv:Envelope>  
  4. Because the log mediator is enabled inside the outSequence, there will be three responses from the three vendors. The logs will be similar to the following:

    Image Modified

  5. In SoapUI, you will get the response from the vendor providing the best quote as follows:

    Image Modified

  6. Compare the logged response messages with the response received by the client to see that the ScatterGatherProxy service returns the best quote to the client.

How the implementation works

...