javax.xml.soap.MessageFactory.newInstance();
final SOAPMessage soapMessage = messageFactory.createMessage();
// Object for message parts
final SOAPPart soapPart = soapMessage.getSOAPPart();
final SOAPEnvelope envelope = soapPart.getEnvelope();
envelope.addNamespaceDeclaration("xsd",
"http://www.w3.org/2001/XMLSchema");
envelope.addNamespaceDeclaration("xsd",
"http://basic.beans.data.app.openmeetings.org/xsd");
envelope.addNamespaceDeclaration("xsd",
"http://basic.beans.persistence.app.openmeetings.org/xsd");
envelope.addNamespaceDeclaration("xsi",
"http://www.w3.org/2001/XMLSchema-instance");
envelope.addNamespaceDeclaration("enc",
"http://schemas.xmlsoap.org/soap/encoding/");
envelope.addNamespaceDeclaration("env",
"http://schemas.xmlsoap.org/soap/envelop/");
envelope.addNamespaceDeclaration(NAMESPACE_PREFIX,
"http://services.axis.openmeetings.org");
envelope.addNamespaceDeclaration("rooms",
"http://rooms.beans.persistence.app.openmeetings.org/xsd");
envelope.setEncodingStyle("http://schemas.xmlsoap.org/soap/encoding/");
return soapMessage;
}