Forum Discussion
schnizlein
15 years agoContributor
Is there any way to convert text messages to Bytes? We have to modify the contents of the attachment every execution, so wrapping it as a BytesMessage statically isn't feasible.
Currently we are using Jython in HermesJMS to create a BytesMessage object and read the XML file in as a stream. Is this something that can be reproduced in Groovy (we haven't looked into that at all). I've been looking for a more...elegant...solution and we enjoy the TestSuite features SoapUI has when we test WebServices.
Currently we are using Jython in HermesJMS to create a BytesMessage object and read the XML file in as a stream. Is this something that can be reproduced in Groovy (we haven't looked into that at all). I've been looking for a more...elegant...solution and we enjoy the TestSuite features SoapUI has when we test WebServices.