Message requestMessage = msgContext.getRequestMessage(); SOAPEnvelope requestEnvelope = requestMessage.getSOAPEnvelope(); Message responseMessage = new Message(requestEnvelope); msgContext.setResponseMessage(responseMessage);