CXF应用程序开发 WS 整合Spring

阅读更多

源代码下载

在applicationContext.xml配置如下:


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

       implementor="com.easyway.cxf.service.HelloServiceImpl"
      address="/helloService" />
      
    
        class="com.easyway.cxf.service.HelloService" 
       factory-bean="clientFactory" factory-method="create"/>
   
 
           
                         value="http://localhost:8080/cxf/services/helloService"/>
 

 

 

web.xml配置如下:


 xmlns="http://java.sun.com/xml/ns/javaee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> 
               
                         index.jsp
               

               
               
                          contextConfigLocation
                          classpath:applicationContext.xml
                

             
                     
                              org.springframework.web.context.ContextLoaderListener
                     

             

             
             
                     CXFServlet
                    
                            org.apache.cxf.transport.servlet.CXFServlet
                    

                     1
              

              
                      CXFServlet
                      /services/*
              

        

 

 



 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

  • cxf.part1.rar (5.2 MB)
  • 下载次数: 29
  • cxf.part2.rar (5.2 MB)
  • 下载次数: 27
  • cxf.part3.rar (5.2 MB)
  • 下载次数: 26
  • cxf.part4.rar (5.2 MB)
  • 下载次数: 26
  • cxf.part5.rar (1.9 MB)
  • 下载次数: 26

你可能感兴趣的:(Spring,Web,Servlet,JavaEE,XML)