System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.

Sep 28, 2015 at 9:55 PM
Hi When, I invoke a web service through the tool, I always get the "Data at the root level is invalid. Line 1, position 1" exception in the response. The XML response appears to be fine with no empty spaces in the starting the file. Not sure how to debug this response and find out the actual issues with my xml response.

Can you please help me to find out whats the problem? The SOAP UI tool displays the response corectly.

The starting snippet of my xml response is as follows:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
  <tns:BrokerMemberDataResponse xmlns:tns="http://main.abzcorp.com/BrokerMemberData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <tns:BrokerMemberInfo>
        <tns:DateOfNotice>2015-09-27</tns:DateOfNotice>
        <tns:CustomerFirstName>John</tns:CustomerFirstName>
        <tns:CustomerLastName>Doe</tns:CustomerLastName>