A servlet is making a call to my b2b service and I am passing a ByteArray as the result.
I believe that this is because the output template mechanism wants to deal with things as either text/xml or text/html not as binary output.
Could you please explain little bit more on this. I should write a content handler for ByteArray and register it. And then force the byte array as a response using setResponse built in service. Will this work?