title: Wso2 esb: Edit the response of one rest API and send that response to another rest api
body: <p>We have 2 rest APIs and have to edit and send the one rest API response as a request message to the another rest API.</p>
  
  <p>Ex: First api response is </p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;api&gt;
    &lt;attribute_set_id&gt;4&lt;/attribute_set_id&gt;
    &lt;type_id&gt;simple&lt;/type_id&gt;
    &lt;sku&gt;test_dress&lt;/sku&gt;
  &lt;/api&gt;
  </code></pre>
  
  <p>Now we have to edit that response as </p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;api&gt;
    &lt;id&gt;4&lt;/id&gt;
    &lt;product_id&gt;simple&lt;/product_id&gt;
    &lt;sku&gt;test_dress&lt;/sku&gt;
  &lt;/api&gt;
  </code></pre>
  
  <p>and send that response as a request message to the another rest api.
  Is it possible through WSO2 ESB and please provide any sample to work for above scenario.</p>
  
  <p>Please let me know if I need to give more details.</p>
  
  <p>Thanks,
  Geetha Gupta</p>