Appendix F. SAAJ Attachments

In addition to the resources it gives you when building simple SOAP messages, SAAJ can help you build SOAP Messages with Attachments (SwA). Appendix E pointed out that SwA is not supported by the WS-I Basic Profile 1.0. Supported or not, SwA is a major piece of functionality in SAAJ, so it's covered by this book. Still, I recommend you use SwA only when your project requires you to.

SwA was covered in detail in Appendix E, but a review of the basic concepts here will be helpful. SwA uses the MIME message format to allow SOAP documents to refer to non-XML data, such as images, documents, digital signatures, and serialized objects. A MIME message (also called a package) is divided into parts, each of which is a block ...

Get J2EE™ Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.