throws IOException, SOAPExceptionImpl {
if ((headers == null) || (getContentType(headers) == null)) {
headers = new MimeHeaders();
headers.setHeader("Content-Type", SOAPConstants.SOAP_1_2_CONTENT_TYPE);
}
MessageImpl msg = new Message1_2Impl(headers, in);
msg.setLazyAttachments(lazyAttachments);
return msg;
}