/* Added due to possible bug in Axis2, the content type is never set for a JMS byte message. This
* goes unnoticed when MTOM is not used, as the server can handle the message. However once MTOM
* is used a contentType of multipart/related is required.
*/
bytesMsg.setStringProperty(JMSConstants.CONTENT_TYPE,
new SOAPMessageFormatter().getContentType(msgContext, format, null));
} else {
message = session.createTextMessage(); // default
TextMessage txtMsg = (TextMessage) message;
txtMsg.setText(msgElement.toString());
}