Apache CXF和spring集成配置问题请教大神

云淡风清-北京 2012-09-03 05:16:45
下面配置中的 <import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.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">

<!-- Import Apache CXF Bean Definition -->
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

<!-- SurveyService -->
<bean id="surveyService" class="ws.cxf.impl.SurveyService">
<property name="excludeName" value="Michael" />
<property name="leastPonit" value="10" />
</bean>

<!-- Expose SurveyWebService -->
<jaxws:server id="surveyWebService" serviceClass="ws.cxf.ISurveyService"
address="/SurveyWebService">
<jaxws:serviceBean>
<ref bean="surveyService" /> <!-- 要暴露的 bean 的引用 -->
</jaxws:serviceBean>
</jaxws:server>
</beans>


...全文
103 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
sky_08_06_02 2012-09-04
  • 打赏
  • 举报
回复
额也这样认为
cscript 2012-09-03
  • 打赏
  • 举报
回复
把你的cxf的jar包打开下的 META-INF/cxf/ 这个路径下

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧