Cxf + Spring+ myeclipse+ cxf 进行 Webservice服务端开发
使用Cxf开发webservice的服务端项目结构

Spring配置文件applicationContext.xml 介绍:
![]()
配置文件的位置:
src/config/spring/applicationContext.xml
配置文件的内容:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
<!-- 创建要发布webservice服务的实例bean对象 -->
<bean id="sayHelloManager" class="webserviceServer.SayHelloImpl" />
<!-- 发布webservice服务 -->
<jaxws:endpoint id="sayHello" implementor="#sayHelloManager" address="/sayHelloServer" />
</beans>
View Code