Note that there are some explanatory texts on larger screens.

plurals
  1. POPrice Comparison Engine using WSO2 products
    primarykey
    data
    text
    <p>We are using WSO2 ESB for an aggregation project. We are getting prices for some products using SOAP from six vendors, response formats are already unified in ESB and each response contains 5-10 products. Here's some sample responses:</p> <p><b>Response from Vendor1:</b></p> <pre><code>&lt;Products Vendor="1stVendor"&gt; &lt;Product&gt; &lt;Brand&gt;Sony&lt;/Brand&gt; &lt;Model&gt;M5&lt;Model&gt; &lt;Price&gt;800.00&lt;Price&gt; &lt;Product&gt; &lt;Product&gt; &lt;Brand&gt;Dell&lt;/Brand&gt; &lt;Model&gt;B6&lt;Model&gt; &lt;Price&gt;900.00&lt;Price&gt; &lt;Product&gt; &lt;Product&gt; &lt;Brand&gt;IBM&lt;/Brand&gt; &lt;Model&gt;H9&lt;Model&gt; &lt;Price&gt;950.00&lt;Price&gt; &lt;Product&gt; &lt;Products&gt; </code></pre> <p><br></p> <p><b>Response from Vendor2:</b></p> <pre><code>&lt;Products Vendor="2ndVendor"&gt; &lt;Product&gt; &lt;Brand&gt;Sony&lt;/Brand&gt; &lt;Model&gt;M5&lt;Model&gt; &lt;Price&gt;720.00&lt;Price&gt; &lt;Product&gt; &lt;Product&gt; &lt;Brand&gt;Dell&lt;/Brand&gt; &lt;Model&gt;B6&lt;Model&gt; &lt;Price&gt;950.00&lt;Price&gt; &lt;Product&gt; &lt;Product&gt; &lt;Brand&gt;IBM&lt;/Brand&gt; &lt;Model&gt;H9&lt;Model&gt; &lt;Price&gt;940.00&lt;Price&gt; &lt;Product&gt; &lt;Products&gt; </code></pre> <p><br> Now we need to compare the prices for each product to find the cheapest price for each product and return the best options as the final response. For the above examples, it should look like this:</p> <pre><code>&lt;Products&gt; &lt;Product CheapestVendor="2ndVendor"&gt; &lt;Brand&gt;Sony&lt;/Brand&gt; &lt;Model&gt;M5&lt;Model&gt; &lt;Price&gt;720.00&lt;Price&gt; &lt;Product&gt; &lt;Product CheapestVendor="1stVendor"&gt; &lt;Brand&gt;Dell&lt;/Brand&gt; &lt;Model&gt;B6&lt;Model&gt; &lt;Price&gt;900.00&lt;Price&gt; &lt;Product&gt; &lt;Product CheapestVendor="2ndVendor"&gt; &lt;Brand&gt;IBM&lt;/Brand&gt; &lt;Model&gt;H9&lt;Model&gt; &lt;Price&gt;940.00&lt;Price&gt; &lt;Product&gt; &lt;Products&gt; </code></pre> <p><br></p> <p>With regards to the above details:</p> <p>1- What's the best/fastest strategy to implement this? <br><br> 2- Can we use WSO2 BRS (Business Rules Server) as a price comparison engine to achieve this? If yes, should we merge all responses into one message and pass to BRS or the messages have to be sent separately. <br><br> 3- Do we need WSO2 BPS (or any BPEL engine) for this purpose? <br><br></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload