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等更高級的東西,您需要添加額外的模塊。