title: DataMapper in Mule is not returning required output
body: <p>I am new to Mule and just trying to use mule to expose SOAP webservice. I used following example from mule soft <a href="http://www.mulesoft.org/documentation/display/current/XML-only+SOAP+Web+Service+Example" rel="nofollow">http://www.mulesoft.org/documentation/display/current/XML-only+SOAP+Web+Service+Example</a>. I am able to expose the webservice but getting error when DataMapper component tries to map Data from one request to another. Attached files contains required configurations. When I run the test xml on mapper using preview tab in Mule Studio it returns just:  and says Your XML is not valid. Error: Premature End of File.</p>
  
  <p>Please suggest.</p>
  
  <p>Following is the configuration:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;mule xmlns:data-mapper="http://www.mulesoft.org/schema/mule/ee/data-mapper" xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" 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" version="EE-3.3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
  http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd 
  http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/current/mule-cxf.xsd 
  http://www.mulesoft.org/schema/mule/ee/data-mapper http://www.mulesoft.org/schema/mule/ee/data-mapper/current/mule-data-mapper.xsd 
  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/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd "&gt;
      &lt;data-mapper:config name="admitToUpsert" transformationGraphPath="admittoupsert.grf" doc:name="DataMapper"/&gt;
      &lt;flow name="admitPatientService" doc:name="admitPatientService"&gt;
          &lt;http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8080" doc:name="AdmissionService"/&gt;
          &lt;cxf:proxy-service port="AdmissionPort" namespace="http://www.mule-health.com/SOA/service/admission/1.0" service="AdmissionService" payload="body" doc:name="Proxy Service" wsdlLocation="service/AdmissionService.wsdl"/&gt;
          &lt;logger message="First request: #[message.payload]" level="INFO" doc:name="Logger"/&gt;
          &lt;mulexml:dom-to-xml-transformer doc:name="Object to XML" returnClass="java.lang.String"/&gt;
          &lt;logger message="Before hiting transfomer: #[message.payload]" level="INFO" doc:name="Logger"/&gt;
          &lt;data-mapper:transform config-ref="admitToUpsert" doc:name="DataMapper"/&gt;
          &lt;byte-array-to-string-transformer returnClass="java.lang.String" mimeType="text/plain" doc:name="Byte Array to String"/&gt;
          &lt;logger message="Upsert Request is: #[message]" level="INFO" doc:name="Logger"/&gt;
      &lt;/flow&gt;
  &lt;/mule&gt;
  </code></pre>
  
  <p>Following is the Test xml:</p>
  
  <pre><code>&lt;ns0:admitSubject xmlns:ns0="http://www.mule-health.com/SOA/service/admission/1.0" xmlns:ns1="http://www.mule-health.com/SOA/model/1.0"&gt;
       &lt;ns1:Referer&gt;
          &lt;ns1:clientId&gt;7899&lt;/ns1:clientId&gt;
       &lt;/ns1:Referer&gt;
       &lt;ns1:Referral&gt;
          &lt;ns1:procedure&gt;
             &lt;ns1:code&gt;In-patient&lt;/ns1:code&gt;
             &lt;ns1:admission&gt;Elective&lt;/ns1:admission&gt;
             &lt;ns1:department&gt;CARDIOLOGY&lt;/ns1:department&gt;
          &lt;/ns1:procedure&gt;
       &lt;/ns1:Referral&gt;
       &lt;ns1:Subject&gt;
          &lt;ns1:nationalId&gt;4657&lt;/ns1:nationalId&gt;
          &lt;ns1:firstName&gt;Charles&lt;/ns1:firstName&gt;
          &lt;ns1:lastName&gt;Brown&lt;/ns1:lastName&gt;
          &lt;ns1:address1&gt;Any Street&lt;/ns1:address1&gt;
          &lt;ns1:address2&gt;?&lt;/ns1:address2&gt;
          &lt;ns1:address3&gt;?&lt;/ns1:address3&gt;
          &lt;ns1:nationality&gt;American&lt;/ns1:nationality&gt;
          &lt;ns1:gender&gt;Male&lt;/ns1:gender&gt;
          &lt;ns1:dateOfBirth&gt;1987-01-19&lt;/ns1:dateOfBirth&gt;
       &lt;/ns1:Subject&gt;
    &lt;/ns0:admitSubject&gt;
  </code></pre>
  
  <p>WSDL and XSD can be pulled from <a href="https://github.com/mulesoft/Pre-sales-hospital-admission/tree/master/src/main/resources/service" rel="nofollow">https://github.com/mulesoft/Pre-sales-hospital-admission/tree/master/src/main/resources/service</a>. Apologies for not pasting it here as it would have caused to much data on page but I can add them if requested</p>