title: SOAP The root element for the request could not be determined
body: <p>I'm getting the following error when I try and post some SOAP requests:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"  
   xmlns:soap="http://www.w3.org/2003/05/soap-envelope"&gt;
     &lt;soap:Body&gt;
      &lt;soap:Fault&gt;
          &lt;soap:Code&gt;
              &lt;soap:Value&gt;soap:Receiver&lt;/soap:Value&gt;
          &lt;/soap:Code&gt;
          &lt;soap:Reason&gt;
              &lt;soap:Text&gt;The root element for the request could not be determined. When RoutingStyle is set to RequestElement, SoapExtensions configured via an attribute on the method cannot modify the request stream before it is read. The extension must be configured via the SoapExtensionTypes element in web.config or the request must arrive at the server as clear text.&lt;/soap:Text&gt;
          &lt;/soap:Reason&gt;
      &lt;/soap:Fault&gt;
  &lt;/soap:Body&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'm using </p>
  
  <pre><code> &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:m="http://test.#######.co.uk/ws-b/&gt;
      &lt;soapenv:Body&gt;
       &lt;hs:logon&gt;
         &lt;hs:username&gt;USER&lt;/m:username&gt;
         &lt;hs:password&gt;pass123&lt;/m:password&gt;
      &lt;/hs:logon&gt;
    &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>However, I can get some request to work using messages of a similar format. What does this mean?</p>