Here is a quote from my book ... take that Pradeep Bhat! Just kidding.
-----------
J2EE Web Services, AW 2004 ------------
Sending and receiving
SOAP Messages with Attachments (SwA) using JAX-RPC is deceptively easy. I say "deceptively" because, like SAAJ, JAX-RPC depends on the
Java Activation Framework (JAF) to handle the marshalling of attachments to and from SOAP messages, so sending and receiving attachments depends in large part on the types of DataContentHandler classes that your J2EE application server provides. This appendix will explain how JAX-RPC supports the SwA standard using JAF.
Essentially there are two ways to support attachments in JAF: You can use javax.activation.DataContentHandler classes or javax.activation.DataSource classes. Each of these interfaces has its strengths and weaknesses. Generally Data ContentHandler types are more convenient, because their operation is hidden, while the DataSource types are less user-friendly but easier to get working. The following provides a quick overview of the DataContentHandler and DataSource types and their strengths and weaknesses. For in-depth coverage of JAF, though,
you should read Section F.1 of Appendix F: SAAJ Attachments.
------------------------------------------------
There is a lot more to it, but this is how the appendix on the subject starts. Its an appendix in my book because SwA is not yet sanctioned by the WS-I. there are some serioius interop problems that need to be worked out. That said, The WS-I Basic Profile 1.1, which is now in developement, does address the use of SwA.