title: WSO2 ESB Mediation flow
body: <p>I was trying to implement a simple message flow with WSO2 ESB, but not very familiar with this topic:</p>
  
  <p><em>"a consumer Client communicate with a service provider to get back a random integer number."</em> Ideally i would like to send the random number back to the Client but also to another service.</p>
  
  <ul>
  <li>I have first defined a Custom proxy (http, https protocols); </li>
  <li>a InSequence: LOG mediator, Send Mediator; </li>
  <li>an EndPoint of the Actual Service called "RandomNumbers" (http://localhost:8280/services/RandomNumbers)</li>
  <li>an OutSequence: LOG mediator, SEND mediator</li>
  <li>fault sequence: existing fault</li>
  </ul>
  
  <p>Can someone check if this implementation is correct? many thanks</p>
  
  <blockquote>
  <pre><code>&lt;proxy name="ClientAskNumber" transports="https http" startOnLoad="true" trace="disable"&gt;
          &lt;target faultSequence="fault"&gt;
              &lt;endpoint&gt;
                  &lt;address uri="http://localhost:8280/services/RandomNumbers"/&gt;
              &lt;/endpoint&gt;
              &lt;inSequence&gt;
                  &lt;log/&gt;
                  &lt;send/&gt;
              &lt;/inSequence&gt;
              &lt;outSequence&gt;
                  &lt;log/&gt;
                  &lt;send/&gt;
              &lt;/outSequence&gt;
          &lt;/target&gt;
      &lt;/proxy&gt;
  </code></pre>
  </blockquote>