Hi Mike,
First things first, what is your overall scenario? Based on your input I am guessing synchronous SOAP -> PI -> ? but not sure what your target is. Also, if you are going to put binary data in the XML response then what is your encoding requirement for the consumer?
Regards,
Ryan Crosby