[jboss-user] [JBossWS] - Dynamic no. of attachments using MTOM

oskar.carlstedt do-not-reply at jboss.com
Thu Nov 22 03:45:59 EST 2007


Hi!

Has anyone made i possible to implement a web service that can receive or send multiple attachments using MTOM. All examples just have one DataHandler but this is not enough for what I want to do. I want to be able to use a dynamic number of attachments.

XOP has support for several attachments in the xml document but how does JBoss and especially Java EE treat such a data structure. Where can I find my attachments?

If I use the Provider< SOAPMessage > mechanism I have full control, but still the question: Where can I find the send attachments? Do I have to use a Provider< Source > implementation to solve this?

My web service consumers want to send multiple documents to our server in one request. Upon other requests, I will generate a dynamic number of PDF documents on the server and then send them to the client. Is it possible? Of course we can bundle all attachments into a zip file and get one attachment - but this is an ugly work around.

I hope someone can answer this question.

Regards
/Oskar


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106990#4106990

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106990



More information about the jboss-user mailing list