why Unable to create envelope from given source?
<p>I'm trying to create a soap 1.2 message from a string like this:</p>

<pre><code>String soapIn = "&lt;?xml version='1.0' encoding='UTF-8'?&gt;\n" +
            "&lt;soapenv:Envelope xmlns:soapenv=\"http://www.w3.org/2003/05/soap-envelope\"&gt;\n" +
            "   &lt;soapenv:Header /&gt;\n" +
            "   &lt;soapenv:Body&gt;\n" +
            "      &lt;ns:getChannelLineupInfoResponse xmlns:ns=\"http://channellineup.services.vidctlwhse.oss.cable.comcast.com/xsd\"&gt;\n" +
            "          &lt;ns:return&gt;\n" +
            "              &lt;?xml version=\"1.0\" encoding=\"ISO-8859-1\"?&gt;\n" +
            "              &lt;response rows=\"1044\" type=\"success\"&gt;\n" +
            "              &lt;/response&gt;\n" +
            "          &lt;/ns:return&gt;\n" +
            "      &lt;/ns:getChannelLineupInfoResponse&gt;\n" +
            "   &lt;/soapenv:Body&gt;\n" +
            "&lt;/soapenv:Envelope&gt;";
    MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
    logger.debug("InneoquestSoapHandler.createNewSoapResponse: about to createMessage...");
    SOAPMessage newMsg = messageFactory.createMessage(
                            new MimeHeaders(),
                            new ByteArrayInputStream(soapIn.getBytes(Charset.forName("UTF-8"))));
    logger.debug("InneoquestSoapHandler.createNewSoapResponse: about to get new envelope...");
    SOAPEnvelope newEnv = newMsg.getSOAPPart().getEnvelope();  //fails here
    logger.debug("InneoquestSoapHandler.createNewSoapResponse: about to get old envelope...");
</code></pre>

<p>But getting "unable to create envelope from given source" at this line</p>

<pre><code>SOAPEnvelope newEnv = newMsg.getSOAPPart().getEnvelope();  //fails here
</code></pre>

<p>Hours of googling failed to find a solution.  Any ideas?</p>