支持带附件的SOAP消息Java接口(SAAJ:SOAP with Attachments API for Java),定义了一套API,使开发者可以产生、消费遵从SOAP 1.1, SOAP 1.2, 和SOAP Attachments Feature的消息。
2019年SAAJ更改为新的名字:Jakarta SOAP with Attachments
https://eclipse-ee4j.github.io/metro-saaj/

附件可以是完整的XML文档、XML片段、图像、文本文档、或者其它任有正确的MIME类型的内容。
Jakarta SOAP with Attachments 1.4:
https://jakarta.ee/specifications/soap-attachments/1.4/

Jakarta SOAP with Attachments 2.0:
https://jakarta.ee/specifications/soap-attachments/

Jakarta SOAP with Attachments 3.0:
https://jakarta.ee/specifications/soap-attachments/3.0/

代码库:https://github.com/eclipse-ee4j/metro-saaj

主页:https://eclipse-ee4j.github.io/metro-saaj/

样例:
https://github.com/eclipse-ee4j/metro-saaj/tree/master/saaj-samples/saaj-simple

打开主页:https://eclipse-ee4j.github.io/metro-saaj/
点击右边的Download:

跳转到如下页面:

在maven工程的pom.xml文件中dependencies章节增加如下片段:
com.sun.xml.messaging.saaj
saaj-impl
3.0.2
会将依赖的jakarta.xml.soap-api一起下载下来:

