Hi there, this is quite an old post but maybe it will be useful to someone. I worked on returning files from the SOE and figured out that you have to set response properties to java.util.Map responseProperties before returning bytes array and then it should work: responseProperties.put("Content-Type", "text/xml"); It worked for me.
... View more