<< 多个dwr.xml文件的配置 - imticg - ITeye技术网站 | 首页 | 【卜維丰】用 CSS3 美化表單分組(fieldset) >>

spring + XFire 构建webservic 客户端根据服务地址创建客户端调用 - yanwenhan - ITeye技术网站

  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">  
  3. <beans>  
  4.     <bean id="baseService" class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean" lazy-init="false" abstract="true">  
  5.         <property name="lookupServiceOnStartup" value="false" />
  6.     </bean>
  7.     <bean id="echoService" parent="baseService">  
  8.         <property name="serviceClass">  
  9.             <value>com.hyw.example.Echo</value>  
  10.         </property>  
  11.         <property name="wsdlDocumentUrl">  
  12.             <value>http://localhost:8080/MyWebService/EchoService?wsdl</value>  
  13.         </property>  
  14.     </bean>  
  15.     <bean id="userService" parent="baseService">  
  16.         <property name="serviceClass">  
  17.             <value>com.hyw.example.UserService</value>  
  18.         </property>  
  19.         <property name="wsdlDocumentUrl">  
  20.             <value>http://localhost:8080/MyWebService/UserService?wsdl</value>  
  21.         </property>  
  22.     </bean>  
  23. </beans> 

阅读全文……

标签 : ,



发表评论 发送引用通报