What you should do is the following:
- Put the output of the binary transformation into a context variable at the end of the binary transformation.
- Create a rule where through a transform action you create the XML (the format done in XSL) where you use the context variable to set the body of the XML message
This should work out to your needs.