- 浏览: 140520 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (138)
- java基础 (26)
- 日常工作经验总结 (22)
- SVN学习与使用 (1)
- JBOSS学习与实践 (1)
- webService学习与实践 (4)
- redis学习与实践 (12)
- spring学习与实践 (0)
- hibernate学习与实践 (4)
- Struts2学习与实践 (0)
- mybatis学习与实践 (0)
- SpringMVC学习与实践 (0)
- jfreechart学习与使用 (0)
- javaScript学习与实践 (1)
- linux学习与实践 (4)
- Python学习与实践 (7)
- Oracle学习与实践 (21)
- Mysql学习与实践 (4)
- HTML5+CSS3学习与实践 (0)
- DIV+CSS学习与实践 (0)
- tomcat学习与实践 (1)
- mongodb学习与实践 (1)
- Git学习与实践 (2)
- hadhoop学习与实践 (0)
- shiro学习与实践 (0)
- CMS学习与实践 (0)
- Jmeter学习与实践 (0)
- java测试学习与实践 (2)
- bootstrap学习与实践 (0)
- jquery学习与实践 (0)
- Spring+hibernate+Struts2框架开发CRM项目 (0)
- JVM学习与实践 (0)
- 推荐学习网站 (1)
- 日常工作必备小技能 (4)
- Apache实践 (1)
- dubbo学习与实践 (2)
- Centos7 (6)
- 面试题目集合(收集各大网站) (4)
- 大数据学习 (1)
- 财富本 (2)
- 股票投资学习 (0)
- ZooKeeper (0)
- python切割集合里面相同的元素到一个集合里面 (1)
- 机器学习与深度学习 (1)
最新评论
-
魏叔武:
...
基于UDP协议的Socket编程
一、前言准备:
1、Web Service笔记(二):利用CXF开发Web Service
2、需要的 jar包:需要spring的 jar 包,去掉 jetty 的包。
二、CXF 结合Spring 发布Web Service
1、配置web.xml文件。需要配置spring 与 CXF。
[java] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- 加载Spring容器配置 start-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- 设置Spring容器加载配置文件路径 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:applicationContext-server.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener>
<!-- 加载Spring容器配置 end-->
<!-- 配置CXF start -->
<servlet>
<servlet-name>CXFService</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CXFService</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<!-- 配置CXF end -->
2、配置 spring 的配置文件,增加 CXF 的schema 与配置依赖。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd "
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- CXF必须引入配置依赖 -->
<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"/>
3、spring结合 CXF 的配置
1)endpoint 标签,也可以使用 server(略)。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<jaxws:endpoint id="" implementor="" address="">
</jaxws:endpoint>
2)address 地址,省略工程名等。如访问地址:http://localhost:8080/Java_WS_Server/helloworld1?wsdl
3)implementor 指定 WS 的服务提供者。支持两种形式:
①、直接给定服务提供者的类名。
②、设置容器中的一个bean。(推荐)
4)第一种 implementor 方法的配置。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- 直接给定服务提供者的类名,不推荐 -->
<jaxws:endpoint id="helloWorld1" implementor="com.ws.impl.HelloWorldImpl" address="/helloworld">
</jaxws:endpoint>
5)第二种 implementor 方法的配置,引用bean。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- 设置容器中的一个bean,用# 引用。推荐。 -->
<bean id="helloWorld2" class="com.ws.impl.HelloWorldImpl"></bean>
<jaxws:endpoint id="helloWorldWebService" implementor="#helloWorld2" address="/soap/helloWorld">
lt;/jaxws:endpoint>
5、添加拦截器
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- 配置CXF的拦截器 -->
<bean id="helloWorld3" class="com.ws.impl.HelloWorldImpl"></bean>
<jaxws:endpoint id="helloWorldServer" implementor="#helloWorld3" address="/intecepter/helloWorld">
<jaxws:inInterceptors>
<bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"></bean>
<bean class="com.intecepter.MyIntecepter"></bean>
</jaxws:inInterceptors>
<jaxws:outInterceptors>
</jaxws:outInterceptors>
</jaxws:endpoint>
6、完整的spring的配置文件的代码如下:applicationContext-server.xml
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd ">
<!-- CXF必须引入配置依赖 -->
<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"/>
<context:property-placeholder />
<context:annotation-config />
<!-- 设置需要进行Spring注解扫描的类包 -->
<context:component-scan base-package="com/service" />
<!--发布方式一: 使用 server -->
<!--
注意下面的address,这里的address的名称就是访问的WebService的name
<jaxws:server id="userService" serviceClass="com.hoo.service.IComplexUserService" address="/Users">
<jaxws:serviceBean>
要暴露的 bean 的引用
<ref bean="userServiceBean"/>
</jaxws:serviceBean>
</jaxws:server>
-->
<!--发布方式二:使用 endpoint :
1、implementor 指定 WS 的服务提供者。支持两种形式:
1)直接给定服务提供者的类名。
2)设置容器中的一个bean。推荐。
2、address :地址,省略工程名等。访问地址:http://localhost:8080/Java_WS_Server/helloworld1?wsdl
-->
<!-- 直接给定服务提供者的类名,不推荐 -->
<jaxws:endpoint id="helloWorld1" implementor="com.ws.impl.HelloWorldImpl" address="/helloworld">
</jaxws:endpoint>
<!-- 设置容器中的一个bean,用# 引用。推荐。 -->
<bean id="helloWorld2" class="com.ws.impl.HelloWorldImpl"></bean>
<jaxws:endpoint id="helloWorldWebService" implementor="#helloWorld2" address="/soap/helloWorld">
</jaxws:endpoint>
<!-- 配置CXF的拦截器 -->
<bean id="helloWorld3" class="com.ws.impl.HelloWorldImpl"></bean>
<jaxws:endpoint id="helloWorldServer" implementor="#helloWorld3" address="/intecepter/helloWorld">
<jaxws:inInterceptors>
<bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"></bean>
<bean class="com.intecepter.MyIntecepter"></bean>
</jaxws:inInterceptors>
<jaxws:outInterceptors>
</jaxws:outInterceptors>
</jaxws:endpoint>
<!-- REST WebService 接口--><!--
<jaxrs:server id="restServiceContainer" address="/rest">
暴露的Bean
<jaxrs:serviceBeans>
<bean class="com.hoo.rest.RESTSampleSource"></bean>
<bean class="com.hoo.rest.SurpolicyEntrence"></bean>
</jaxrs:serviceBeans>
<jaxrs:extensionMappings>
<entry key="json" value="application/json" />
<entry key="xml" value="application/xml" />
</jaxrs:extensionMappings>
<jaxrs:languageMappings>
<entry key="en" value="en-gb"/>
</jaxrs:languageMappings>
</jaxrs:server>
--></beans>
7、部署工程,访问 http://localhost:8080/Java_WS_Server,显示如下:
二、CXF 结合Spring 客户端
1、jar包的引进与服务端一致,使用 wsdl2java http://localhost:8080/Java_WS_Server/soap/helloWorld?wsdl 创建客户端。
2、web配置:客户端的web配置可以省略CXF的配置,只需要spring即可。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- 加载Spring容器配置 start-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- 设置Spring容器加载配置文件路径 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:applicationContext-client.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener>
3、利用 jaxws:client 标签实现 CXF 的客户端的spring结合。记得引入CXF的 schema 规范与本身的配置。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd ">
<!-- CXF必须引入配置依赖 -->
<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"/>
<context:property-placeholder />
<context:annotation-config />
<!-- 设置需要进行Spring注解扫描的类包 -->
<context:component-scan base-package="com" />
<!-- 配置代理 : address: 配置为服务端的地址 id:与客户端注入的保持一致 -->
<jaxws:client id="helloWorld" serviceClass="com.ws.HelloWorld"
address="http://localhost:8080/Java_WS_Server/soap/helloWorld" >
</jaxws:client>
</beans>
4、代码调用
[java] view plain copy 在CODE上查看代码片派生到我的代码片
/**
* 访问 server
*/
private void visitSpringServer() {
ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext-client.xml");//获取配置文件
HelloWorld service = ctx.getBean("helloWorld", HelloWorld.class);//获取bean
System.out.println(service.sayHi("邵小宝"));//调用服务端
}
原博客地址:http://blog.csdn.net/u012228718/article/details/41381595
1、Web Service笔记(二):利用CXF开发Web Service
2、需要的 jar包:需要spring的 jar 包,去掉 jetty 的包。
二、CXF 结合Spring 发布Web Service
1、配置web.xml文件。需要配置spring 与 CXF。
[java] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- 加载Spring容器配置 start-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- 设置Spring容器加载配置文件路径 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:applicationContext-server.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener>
<!-- 加载Spring容器配置 end-->
<!-- 配置CXF start -->
<servlet>
<servlet-name>CXFService</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CXFService</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<!-- 配置CXF end -->
2、配置 spring 的配置文件,增加 CXF 的schema 与配置依赖。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd "
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- CXF必须引入配置依赖 -->
<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"/>
3、spring结合 CXF 的配置
1)endpoint 标签,也可以使用 server(略)。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<jaxws:endpoint id="" implementor="" address="">
</jaxws:endpoint>
2)address 地址,省略工程名等。如访问地址:http://localhost:8080/Java_WS_Server/helloworld1?wsdl
3)implementor 指定 WS 的服务提供者。支持两种形式:
①、直接给定服务提供者的类名。
②、设置容器中的一个bean。(推荐)
4)第一种 implementor 方法的配置。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- 直接给定服务提供者的类名,不推荐 -->
<jaxws:endpoint id="helloWorld1" implementor="com.ws.impl.HelloWorldImpl" address="/helloworld">
</jaxws:endpoint>
5)第二种 implementor 方法的配置,引用bean。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- 设置容器中的一个bean,用# 引用。推荐。 -->
<bean id="helloWorld2" class="com.ws.impl.HelloWorldImpl"></bean>
<jaxws:endpoint id="helloWorldWebService" implementor="#helloWorld2" address="/soap/helloWorld">
lt;/jaxws:endpoint>
5、添加拦截器
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- 配置CXF的拦截器 -->
<bean id="helloWorld3" class="com.ws.impl.HelloWorldImpl"></bean>
<jaxws:endpoint id="helloWorldServer" implementor="#helloWorld3" address="/intecepter/helloWorld">
<jaxws:inInterceptors>
<bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"></bean>
<bean class="com.intecepter.MyIntecepter"></bean>
</jaxws:inInterceptors>
<jaxws:outInterceptors>
</jaxws:outInterceptors>
</jaxws:endpoint>
6、完整的spring的配置文件的代码如下:applicationContext-server.xml
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd ">
<!-- CXF必须引入配置依赖 -->
<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"/>
<context:property-placeholder />
<context:annotation-config />
<!-- 设置需要进行Spring注解扫描的类包 -->
<context:component-scan base-package="com/service" />
<!--发布方式一: 使用 server -->
<!--
注意下面的address,这里的address的名称就是访问的WebService的name
<jaxws:server id="userService" serviceClass="com.hoo.service.IComplexUserService" address="/Users">
<jaxws:serviceBean>
要暴露的 bean 的引用
<ref bean="userServiceBean"/>
</jaxws:serviceBean>
</jaxws:server>
-->
<!--发布方式二:使用 endpoint :
1、implementor 指定 WS 的服务提供者。支持两种形式:
1)直接给定服务提供者的类名。
2)设置容器中的一个bean。推荐。
2、address :地址,省略工程名等。访问地址:http://localhost:8080/Java_WS_Server/helloworld1?wsdl
-->
<!-- 直接给定服务提供者的类名,不推荐 -->
<jaxws:endpoint id="helloWorld1" implementor="com.ws.impl.HelloWorldImpl" address="/helloworld">
</jaxws:endpoint>
<!-- 设置容器中的一个bean,用# 引用。推荐。 -->
<bean id="helloWorld2" class="com.ws.impl.HelloWorldImpl"></bean>
<jaxws:endpoint id="helloWorldWebService" implementor="#helloWorld2" address="/soap/helloWorld">
</jaxws:endpoint>
<!-- 配置CXF的拦截器 -->
<bean id="helloWorld3" class="com.ws.impl.HelloWorldImpl"></bean>
<jaxws:endpoint id="helloWorldServer" implementor="#helloWorld3" address="/intecepter/helloWorld">
<jaxws:inInterceptors>
<bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"></bean>
<bean class="com.intecepter.MyIntecepter"></bean>
</jaxws:inInterceptors>
<jaxws:outInterceptors>
</jaxws:outInterceptors>
</jaxws:endpoint>
<!-- REST WebService 接口--><!--
<jaxrs:server id="restServiceContainer" address="/rest">
暴露的Bean
<jaxrs:serviceBeans>
<bean class="com.hoo.rest.RESTSampleSource"></bean>
<bean class="com.hoo.rest.SurpolicyEntrence"></bean>
</jaxrs:serviceBeans>
<jaxrs:extensionMappings>
<entry key="json" value="application/json" />
<entry key="xml" value="application/xml" />
</jaxrs:extensionMappings>
<jaxrs:languageMappings>
<entry key="en" value="en-gb"/>
</jaxrs:languageMappings>
</jaxrs:server>
--></beans>
7、部署工程,访问 http://localhost:8080/Java_WS_Server,显示如下:
二、CXF 结合Spring 客户端
1、jar包的引进与服务端一致,使用 wsdl2java http://localhost:8080/Java_WS_Server/soap/helloWorld?wsdl 创建客户端。
2、web配置:客户端的web配置可以省略CXF的配置,只需要spring即可。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<!-- 加载Spring容器配置 start-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- 设置Spring容器加载配置文件路径 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:applicationContext-client.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener>
3、利用 jaxws:client 标签实现 CXF 的客户端的spring结合。记得引入CXF的 schema 规范与本身的配置。
[html] view plain copy 在CODE上查看代码片派生到我的代码片
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd ">
<!-- CXF必须引入配置依赖 -->
<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"/>
<context:property-placeholder />
<context:annotation-config />
<!-- 设置需要进行Spring注解扫描的类包 -->
<context:component-scan base-package="com" />
<!-- 配置代理 : address: 配置为服务端的地址 id:与客户端注入的保持一致 -->
<jaxws:client id="helloWorld" serviceClass="com.ws.HelloWorld"
address="http://localhost:8080/Java_WS_Server/soap/helloWorld" >
</jaxws:client>
</beans>
4、代码调用
[java] view plain copy 在CODE上查看代码片派生到我的代码片
/**
* 访问 server
*/
private void visitSpringServer() {
ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext-client.xml");//获取配置文件
HelloWorld service = ctx.getBean("helloWorld", HelloWorld.class);//获取bean
System.out.println(service.sayHi("邵小宝"));//调用服务端
}
原博客地址:http://blog.csdn.net/u012228718/article/details/41381595
相关推荐
CXF源码:CXF_Spring源码 CXF源码:CXF_Spring源码
使用CXF结合Spring开发WebServices示例工程,包括服务端与客户端的详细代码。
CXF Spring Web Service 程序,希望对大家有用!!
web项目使用spring和cxf的一个开发实例,有简单的代码样例和jar。是一个完整的项目,最终发布完成时访问 http://ip:port/项目名称/webservices/ 就会发现你发布的webservice服务。
webserivce.、cxf整合spring,用的是spring3和cxf3。欢迎大家下载尝试
CXF结合spring项目实例,com.email.ws.impl包下为eclipse工具生成的客户端,text包用来测试
利用CXF和Spring结合搭建的SOA例子,内容包含服务端配置和一个客户端测试配置,服务器端服务配置在beans.xml中,web.xml文件需要修改;客户端测试配置地址是demo.spring.client下的client-beans.xml,测试类为...
用CXF结合Spring开发WebServices时所需的Jar包,绝对没有垄余。
服务器端被调用的类上要加注解@WebService,否则访问http://localhost:8080/cxf_spring_service/mm/cxf?wsdl时看不到方法和参数 2.在cmd中输入wsdl2java http://localhost:8080/cxf_spring_service/mm/cxf?wsdl报...
cxf-spring-webapp 使用Apache CXF和Spring的示例Web应用程序。
使用cxf+spring框架开发webservice的客户端与服务端代码,用于连接两个项目
cxf结合spring开发相关webservice,所需相关jar包。
Spring Web Service是Spring社区基于Spring提供的一个关注于创建”文档驱动”的Web Service的模块, 它的主要目标是方便基于”契约优先”(Contract-First)的SOAP服务的开发. 好像没有多少人讨论, 大多数的话题都是...
本程序通过CXF-Spring框架来发布一个Webservice(相当于后台,在这里访问数据库),然后由表示层C#来调用其方法。本例子所实现的是从数据库获得的数据通过webservice,显示在C#前台的DataGrid里面。CXF的jar包请本人...
Spring CXF Mybatis 发布 Web Service 实例
Apache CXF Web Service Development
CXF是apache旗下的开源框架,是一套非常流行的web service框架,同时它能与spring进行完美结合。
Spring MVC、CXF、Web Service
apache-cxf结合spring示例