title: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces
body: <p>Trying to retrieve the SOAP body from a SOAP response, but getting this error: </p>
  
  <pre><code>NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
  
  Document doc = soapResMsg.getSOAPBody().extractContentAsDocument(); -- Exception is thrown here
  org.dom4j.io.DOMReader d4Reader = new org.dom4j.io.DOMReader();
  org.dom4j.Document d4doc = d4Reader.read(doc);
  </code></pre>
  
  <p>Using Saaj1.4 </p>
  
  <p>What would be a fix for this?</p>