* @return JMS version of the specified source SOAP message
* @throws Exception if an IO error occurs
* @throws JMSException if a JMS error occurs
*/
protected Message toJMS(SoapMessage message, Session session) throws Exception {
SoapHelper soapHelper = new SoapHelper(endpoint);
// turn SOAP message into byte array/string
ByteArrayOutputStream baos = new ByteArrayOutputStream();
SoapWriter writer = soapHelper.getSoapMarshaler().createWriter(message);
writer.write(baos);
// create text message
TextMessage msg = session.createTextMessage();
msg.setText(baos.toString());