读书人

CXF之用spring配备服务端实例

发布时间: 2013-01-02 13:08:44 作者: rapoo

CXF之用spring配置服务端实例

<?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 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" />      <!-- 第一种方式 eRedG4 方式-->      <!-- <jaxws:endpoint id="helloWorld" implementor="cxf.server.HelloWorldImpl" address="/HelloWorld" /> -->            <!-- 第二种方式 -->      <!--       <bean id="helloWorldImpl" implementor="#helloWorldImpl" address="/HelloWorld"/>       -->             <!-- 第三种方式  ecity方式 -->      <jaxws:server id="helloWorld" serviceaddress="/HelloWorld">          <jaxws:serviceBean>              <bean class="cxf.server.HelloWorldImpl"/>          </jaxws:serviceBean>      </jaxws:server>        </beans>  

读书人网 >开源软件

热点推荐