首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

CXF WebService调整Spring的简单实现

2012-09-19 
CXF WebService整合Spring的简单实现?参考地址: http://www.cnblogs.com/hoojo/archive/2011/03/30/199956

CXF WebService整合Spring的简单实现

?

参考地址: http://www.cnblogs.com/hoojo/archive/2011/03/30/1999563.html

?

?

CXF WebService整合Spring的简单实现。

1 CXF WebService整合Spring.zip解压后部署,

2 将cxf-2.5.1.jar放在web/lib目录下。

3 启动tomcat ,然后运行SpringUsersWsClient.java main方法即可。

?

?

输出:

?

?

2012-3-1 13:40:27 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
信息: Creating Service {http://www.supermap.com.cn}UserServiceService from class com.service.UserService
#############Java调用##############
胥大建:xudajian__java
2012-3-1 13:40:29 org.springframework.context.support.AbstractApplicationContext prepareRefresh
信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@21447f: startup date [Thu Mar 01 13:40:29 CST 2012]; root of context hierarchy
2012-3-1 13:40:29 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [applicationContext-client.xml]
2012-3-1 13:40:29 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
2012-3-1 13:40:29 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
2012-3-1 13:40:29 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
2012-3-1 13:40:29 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@103d246: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,userWsClient.proxyFactory,userWsClient]; root of factory hierarchy
2012-3-1 13:40:30 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
信息: Creating Service {http://www.supermap.com.cn}UserServiceService from class com.service.UserService
#############Spring 注入Cliente##############
胥大建:xudajian_Spring

?

热点排行