On Friday 16 July 2010 10:27:22 am Benson Margulies wrote:
> I find myself looking at creating a service where I want a return
> value which is, in fact, an XML document. I don't want any binding, I
> don't even want a DOM tree. Essentially, I want an MTOM binding on a
> byte[] of XML so that I can do whatever I need to do with it. (As it
> happens, I'm sticking my toe into RDF).
> 
> Just declare byte[] and use the usual MTOM setup technique?

I'm not sure if I'd use a byte[] or a DataHandler, but the idea would be the 
same.    The DataHandler would allow some level of streaming and much better 
handling of larger payloads.   I'm not sure if that's important for your use 
case though.   If it's all smaller stuff, byte[] would be fine.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to