2
我试图用Spring 3.0和CXF构建WS。我按照这篇文章的步骤http://www.ibm.com/developerworks/library/ws-pojo-springcxf/
但是在那篇文章中,作者假设你已经安装了cxf。我想在我的.war中嵌入CXF。哪些maven2构件需要用CXF和Spring构建WS?
在此先感谢。
我试图用Spring 3.0和CXF构建WS。我按照这篇文章的步骤http://www.ibm.com/developerworks/library/ws-pojo-springcxf/
但是在那篇文章中,作者假设你已经安装了cxf。我想在我的.war中嵌入CXF。哪些maven2构件需要用CXF和Spring构建WS?
在此先感谢。
正常情况下,只需依靠cxf-rt-frontend-jaxws和cxf-rt-transport-http。几乎所有需要的东西都会从这些东西中被传递过来。 (可能甚至不需要cxf-rt-transport-http)这将覆盖90%的用例。
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.2.5</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>2.2.5</version>
</dependency>
对于WS-Security和WS-RM和JAX-RS等更高级的东西,您需要添加额外的模块。