当前位置: 代码迷 >> Web前端 >> CXF WebService调整Spring的简单实现
  详细解决方案

CXF WebService调整Spring的简单实现

热度:354   发布时间:2012-09-19 13:43:54.0
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

?

  相关解决方案