SOAPEnvelope env = createSOAPMessage(msgContext, inStream, contentType);
// if we were told to detach, we will make the call here, this is only applicable
// if a DetachableInputStream instance is found on the MessageContext
if(detach) {
DetachableInputStream dis = (DetachableInputStream) msgContext.getProperty(Constants.DETACHABLE_INPUT_STREAM);
if(dis != null) {
if(log.isDebugEnabled()) {
log.debug("Detaching input stream after SOAPEnvelope construction");
}
dis.detach();
}
}
return env;
} catch (Exception e) {
throw AxisFault.makeFault(e);