title: ServiceStack: SerializationException
body: <p>I am testing the api created using ServiceStack using SoapUI and when I try to send the required DataMember thru headers, the api returns the correct values. When I try to send the required DataMember thru Body, I am getting the below error... Please help</p>
  
  <p>Request sent through the body</p>
  
  <pre><code>&lt;GetProductDetailsReq&gt;
  &lt;AToken&gt;ck0b0YYBPkrnVF/j6e16DUPzxLX2SMCXewoR4T&lt;/AToken&gt;
  &lt;/GetProductDetailsReq&gt;
  
  POST http://localhost/ServiceStackAPI/GetProductDetails HTTP/1.1
  Accept-Encoding: gzip,deflate
  Content-Type: application/xml
  Accept: application/xml
  Content-Length: 777
  Host: localhost
  Proxy-Connection: Keep-Alive
  User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
  </code></pre>
  
  <p><strong>Response Status</strong></p>
  
  <blockquote>
    <p>Error Code
        SerializationException Message
        Could not deserialize 'application/xml' request using ServiceModel.DTO.GetProductDetailsReq' Error:
    System.Runtime.Serialization.SerializationException: Error in line 1
    position 66. Expecting element 'GetProductDetailsReq' from namespace
    ''.. Encountered 'Element' with name 'GetProductDetailsReq', namespace
    '<a href="http://schemas.servicestack.net/types" rel="nofollow">http://schemas.servicestack.net/types</a>'. at
    System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator
    xmlReader, Boolean verifyObjectName, DataContractResolver
    dataContractResolver) at
    System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator
    reader, Boolean verifyObjectName, DataContractResolver
    dataContractResolver) at
    System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader
    reader) at
    System.Runtime.Serialization.XmlObjectSerializer.ReadObject(Stream
    stream) at ServiceStack.Text.XmlSerializer.DeserializeFromStream(Type
    type, Stream stream) at
    ServiceStack.WebHost.Endpoints.Support.EndpointHandlerBase.CreateContentTypeRequest(IHttpRequest
    httpReq, Type requestType, String contentType) Stack Trace
        at ServiceStack.WebHost.Endpoints.Support.EndpointHandlerBase.CreateContentTypeRequest(IHttpRequest
    httpReq, Type requestType, String contentType) at
    ServiceStack.WebHost.Endpoints.RestHandler.GetRequest(IHttpRequest
    httpReq, IRestPath restPath) at
    ServiceStack.WebHost.Endpoints.RestHandler.ProcessRequest(IHttpRequest
    httpReq, IHttpResponse httpRes, String operationName)</p>
  </blockquote>