码迷,mamicode.com
首页 > 编程语言 > 详细

CXF Spring 使用

时间:2016-05-11 11:24:04      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:

<?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"
  xmlns:p="http://www.springframework.org/schema/p"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
              http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
              http://cxf.apache.org/jaxws
              http://cxf.apache.org/schemas/jaxws.xsd">

<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" />

  <jaxws:endpoint id="dataElementService" address="/dataElementService"
        implementorClass="com.cfets.project.services.dataelmnt.IDataElementService">
      <jaxws:implementor>
        <bean id="dataElementServiceImpl"
          class="com.cfets.project.services.dataelmnt.impl.DataElementServiceImpl"
            p:rlsDataElmntInfoDAO-ref="rlsDataElmntInfoDAO" p:vrsnInfoDAO-ref="vrsnInfoDAO">
        </bean>
      </jaxws:implementor>
  </jaxws:endpoint>

</beans>

 

 

@WebService
public interface IDataElementService {


}

 

@WebService(endpointInterface = "com.cfets.project.services.dataelmnt.IDataElementService",
serviceName = "dataElementService")
public class DataElementServiceImpl implements IDataElementService {


}

 

CXF Spring 使用

标签:

原文地址:http://www.cnblogs.com/sdream/p/5480925.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!