title: Invalid mime type with DataWeave
body: <p>I'm trying to create a flow in Mule ESB (Enterprise Edition) that receives a message from a queue in WMQ 7.5 (xml payload), transforms it with DataWeave (for my purposes here, to a new xml file that is the same as the old one), and then puts it back on another queue. My flow is as follows: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;mule xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns:metadata="http://www.mulesoft.org/schema/mule/metadata" xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" xmlns:wmq="http://www.mulesoft.org/schema/mule/ee/wmq" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
      xmlns:spring="http://www.springframework.org/schema/beans" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
  http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
  http://www.mulesoft.org/schema/mule/ee/wmq http://www.mulesoft.org/schema/mule/ee/wmq/current/mule-wmq-ee.xsd
  http://www.mulesoft.org/schema/mule/ee/dw http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd
  http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd"&gt;
      &lt;wmq:connector (MQ configuration is here, it is not the problem) /&gt;
      &lt;flow name="dataweaveFlow"&gt;
          &lt;wmq:inbound-endpoint queue="I0" connector-ref="WMQ" doc:name="WMQ"&gt;
              &lt;wmq:transaction action="ALWAYS_BEGIN"/&gt;
          &lt;/wmq:inbound-endpoint&gt;
          &lt;set-variable variableName="MULE_REPLYTO_STOP" value="true" doc:name="Variable"/&gt;
          &lt;dw:transform-message doc:name="Transform Message"&gt;
              &lt;dw:input-payload doc:sample="empty_1.xml"/&gt;
              &lt;dw:set-payload&gt;&lt;![CDATA[%dw 1.0
  %input payload application/xml
  %output application/xml
  ---
  payload]]&gt;&lt;/dw:set-payload&gt;
          &lt;/dw:transform-message&gt;
  
          &lt;wmq:outbound-endpoint queue="O0" connector-ref="WMQ" doc:name="WMQ"&gt;
              &lt;wmq:transaction action="ALWAYS_JOIN"/&gt;
          &lt;/wmq:outbound-endpoint&gt;
      &lt;/flow&gt;
  &lt;/mule&gt;
  </code></pre>
  
  <p>And my DataWeave configuration looks like this:
  Input:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='windows-1252'?&gt;
  &lt;empty/&gt;
  </code></pre>
  
  <p>Transformation:</p>
  
  <pre><code>  %dw 1.0
  %input payload application/xml
  %output application/xml
  ---
  payload
  </code></pre>
  
  <p>Now, when I run this flow, and I put a message on the queue, Mule can't process the message and continually throws exceptions, saying: "Invalid mime type application/xml", and the exception stack is 1. Invalid mime type application/xml (com.mulesoft.weave.mule.exception.InvalidMimeTypeException) com.mulesoft.weave.mule.WeaveMessageProcessor:165 (null) 2. Invalid mime type application/xml (com.mulesoft.weave.mule.exception.InvalidMimeTypeException). Message payload is of type: String (org.mule.api.MessagingException) org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:32 (<a href="http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html" rel="nofollow">http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html</a>)</p>
  
  <p>Anyway, I'm fairly new to Mule (and certainly DataWeave), and help would be appreciated! Let me know if any more details are needed.</p>