我正在寻找除Sun SAAJ之外的替代SOAP(javax.xml.soap
)实现。原因是因为我想在IBM JDK 5驱动的Tomcat AS上部署JAX-WS WebService,但是Sun SAAJ的实现依赖于重新分配的Xerces类(请参阅Ref Impl does not work with IBM JDK和SAAJ test cases no longer work with IBM's SDK)并且唯一的出路是已知的问题是使用自定义的Maven型材拉com.sun.xml.parsers:jaxp-ri
像:Sun SAAJ SOAP实现的替代方案
<profiles>
<profile>
<id>pre-jdk5-profile</id>
<activation>
<jdk>(,1.4]</jdk>
</activation>
<dependencies>
<dependency>
<groupId>com.sun.xml.parsers</groupId>
<artifactId>jaxp-ri</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
</profiles>
我想放弃了此配置,只需更换一个作品无处不在SOAP实现。
我想,供应商SOAP实现可能会与Apache Axis/Apache CXF(它是基于IBM SOAP4J)或JBoss应用服务器 - 请根据我的喜好提供信息:
- 实现应该很容易从分离休息的工作人员(最好是一个轻量级的罐子)。
- 执行应该支持SOAP messages with attachments。
- 实现应该与Java5字节码兼容。
- 如果实现在Maven Central中可用,这是一个优点。
参考文献:
- SOAP with Attachments API for Java
- How does JBossWS compare to other SOAP stacks
- Alternative SOAP implementation besides those offered by Microsoft
这可能会起作用。如果你没有成功使用Axis2,你可以考虑使用Spring WS,它应该从1.4开始支持JDK。 – TechTrip 2012-04-03 15:49:53
(不幸)从[spring-ws-parent-2.0.4.RELEASE.pom](http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/ws/spring-ws-parent/2.0 .4.RELEASE /弹簧-WS-父 - 2.0.4.RELEASE.pom):' com.sun.xml.messaging.saaj SAAJ-IMPL 1.3.2 '这是一个信号,即也许Spring-WS利用Sun SAAJ,他们以某种方式解决同样的问题。 –
2012-04-03 17:57:26
是的,我的坏,呃。 – TechTrip 2012-04-03 20:20:22