title: Mule - Transform XML to SOAP message
body: <p>I receive a <code>JSON</code> message to my <code>mule flow</code> like this:</p>
  
  <pre><code>{
    "book": {
      "author": "Gambardella, Matthew",
      "title": "XML Developer's Guide",
      "genre": "Computer",
      "price": "44.95",
      "publish_date": "2000-10-01",
      "description": "An in-depth look XML"
    }
  }
  </code></pre>
  
  <p>And then I use a <code>JSON to XML transformer</code> with mule and it returns:</p>
  
  <pre><code>   &lt;book &gt;
        &lt;author&gt;Gambardella, Matthew&lt;/author&gt;
        &lt;title&gt;XML Developer's Guide&lt;/title&gt;
        &lt;genre&gt;Computer&lt;/genre&gt;
        &lt;price&gt;44.95&lt;/price&gt;
        &lt;publish_date&gt;2000-10-01&lt;/publish_date&gt;
        &lt;description&gt;An in-depth look XML&lt;/description&gt;
     &lt;/book&gt;
  </code></pre>
  
  <p>This is my actual mule flow:</p>
  
  <p><code>HTTP</code> --> <code>JSON To XML</code> --> <code>Logger</code> --> <code>WS Consumer</code></p>
  
  <p>I want to transform that <code>XML to SOAP</code> message adding an <strong>URI</strong> and a <strong>Prefix</strong>.</p>
  
  <p>Why I need a Prefix and a SOAP message? I need it to send to the web service and send as follows:</p>
  
  <pre><code>...
      &lt;pref:author&gt;Gambardella, Matthew&lt;/pref:author&gt;
  ...
  </code></pre>
  
  <p>I tried to add an <code>XSLT component</code> but it return me an error when I use <code>:</code> or <code>&amp;#x3a;</code> (Hex code).</p>
  
  <p>I thought to use the <code>Dataweave (Mapper) component</code> but it only works with <code>Mule Enterprise Edition</code>.</p>
  
  <p>This is the result that I want:</p>
  
  <pre><code>&lt;soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"  xmlns:pref="URI_SOAP_WS"&gt;
  &lt;soap:Body&gt;
     &lt;pref:book&gt;
            &lt;pref:author&gt;Gambardella, Matthew&lt;/pref:author&gt;
            &lt;pref:title&gt;XML Developer's Guide&lt;/pref:title&gt;
            &lt;pref:genre&gt;Computer&lt;/pref:genre&gt;
            &lt;pref:price&gt;44.95&lt;/pref:price&gt;
            &lt;pref:publish_date&gt;2000-10-01&lt;/pref:publish_date&gt;
            &lt;pref:description&gt;An in-depth look XML&lt;/pref:description&gt;
         &lt;/pref:book&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>What is the best way to do that transformation?</p>