private SOAPEnvelope createEnvelope(Message message) throws HL7Exception, XMLStreamException {
SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
SOAPEnvelope envelope = fac.getDefaultEnvelope();
Parser xmlParser = new DefaultXMLParser();
String xmlDoc = xmlParser.encode(message);
OMElement hl7Element = AXIOMUtil.stringToOM(xmlDoc);
OMNamespace ns = fac.createOMNamespace("http://wso2.org/hl7", "hl7");
OMElement topicOm = fac.createOMElement("message", ns);
topicOm.addChild(hl7Element);