溫馨提示:您的每一次轉(zhuǎn)載,體現(xiàn)了我寫此文的意義!!!煩請您在轉(zhuǎn)載時注明出處http://www.aygfsteel.com/sxyx2008/謝謝合作!!!

          雪山飛鵠

          溫馨提示:您的每一次轉(zhuǎn)載,體現(xiàn)了我寫此文的意義!!!煩請您在轉(zhuǎn)載時注明出處http://www.aygfsteel.com/sxyx2008/謝謝合作!!!

          BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
            215 Posts :: 1 Stories :: 674 Comments :: 0 Trackbacks
          在web.xml里配置
          <servlet>
                  
          <servlet-name>xfire</servlet-name>
                  
          <servlet-class>
                      org.springframework.web.servlet.DispatcherServlet
                  
          </servlet-class>
          </servlet>
          <servlet-mapping>
                  
          <servlet-name>xfire</servlet-name>
                  
          <url-pattern>*.ws</url-pattern>
          </servlet-mapping>
          在spring配置文件中加入以下
          <bean id="xfire.annotationServiceFactory"
                  class
          ="org.codehaus.xfire.annotations.AnnotationServiceFactory">
                  
          <constructor-arg index="0">
                      
          <ref bean="xfire.commonsAnnotations"/>
                  
          </constructor-arg>
                  
          <constructor-arg index="1">
                      
          <ref bean="xfire.transportManager"/>
                  
          </constructor-arg>
                  
          <constructor-arg index="2">
                      
          <ref bean="xfire.aegisBindingProvider"/>
                  
          </constructor-arg>
              
          </bean>

              
          <bean id="xfire.commonsAnnotations"
                  class
          ="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations"/>
              
              
          <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
                  
          <property name="urlMap">
                      
          <map>
                          
          <entry key="/SynchronizService.ws">
                              
          <ref bean="synchronizservice"/>
                          
          </entry>
                      
          </map>
                  
          </property>
              
          </bean>
              
              
          <bean name="synchronizservice" class="org.codehaus.xfire.spring.remoting.XFireExporter">
                  
          <property name="serviceBean" ref="synchronizserviceBean"/>
                  
          <property name="serviceClass"><value>com.futuresoftware.webservices.SynchronizService</value></property>
                  
          <property name="serviceFactory" ref="xfire.annotationServiceFactory"/>
                
          </bean>

                
          <bean id="synchronizserviceBean" class="com.futuresoftware.webservices.SynchronizServiceImpl"/>

          以上是基于注解方式的配置具體配置可參考
          http://xfire.codehaus.org/Advanced+Configuration

          posted on 2011-06-15 10:03 雪山飛鵠 閱讀(737) 評論(0)  編輯  收藏 所屬分類: webservice
          主站蜘蛛池模板: 德州市| 家居| 通州市| 江山市| 山阴县| 楚雄市| 油尖旺区| 濉溪县| 乌审旗| 舟曲县| 汽车| 襄城县| 文水县| 苗栗市| 柳江县| 宁晋县| 贡嘎县| 迁安市| 孟州市| 麻城市| 永寿县| 怀安县| 南开区| 霍林郭勒市| 普格县| 金沙县| 德格县| 红河县| 利辛县| 凤城市| 巨野县| 永平县| 蒲江县| 龙口市| 平度市| 海兴县| 成都市| 杭锦旗| 内乡县| 黄平县| 泸水县|