环境:
[1]JDK 1.7.x
[2]Eclipse Mars.2 J2EE Version
[3]Spring 3.1.2.RELEASE
[4]CXF 3.0.9
概述:
测试Spring+CXF实现Webservice服务端和客户端的技术可行性。
正文
服务端
Step1:新建maven工程后,配置pom.xml
4.0.0 com.nuoke WSServerTestwar 0.0.1-SNAPSHOT WCServerTestMavenWebapp maven.apache.org 3.1.2.RELEASE 3.0.9 org.springframework spring-context${spring.version} org.springframework spring-web${spring.version} org.apache.cxf cxf-rt-frontend-jaxws${cxf.version} org.apache.cxf cxf-rt-transports-http${cxf.version} commons-io commons-io2.4 WCServerTest org.apache.maven.plugins maven-compiler-plugin1.7 1.7 UTF-8 org.apache.maven.plugins maven-surefire-plugintrue