介绍
支持带附件的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类型的内容。
参考资源
1.4版本参考资源
Jakarta SOAP with Attachments 1.4:
https://jakarta.ee/specifications/soap-attachments/1.4/
2.0版本参考资源
Jakarta SOAP with Attachments 2.0:
https://jakarta.ee/specifications/soap-attachments/
3.0版本参考资源
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
SAAJ参考实现下载
打开主页:https://eclipse-ee4j.github.io/metro-saaj/
点击右边的Download:
跳转到如下页面:
在maven工程的pom.xml文件中dependencies章节增加如下片段:
<dependencies>
<dependency>
<groupId>com.sun.xml.messaging.saaj</groupId>
<artifactId>saaj-impl</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>
会将依赖的jakarta.xml.soap-api一起下载下来: