hessian.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <beans xmlns="http://www.springframework.org/schema/beans"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
  4. <bean id="signedProxyFactory" class="com.uas.api.crypto.hessian.SignedProxyFactory"></bean>
  5. <bean id="api.orderService" class="com.uas.remoting.hessian.MultiProxyFactoryBean">
  6. <property name="proxyFactory" ref="signedProxyFactory" />
  7. <property name="serviceUrls">
  8. <map>
  9. <entry key="test"
  10. value="http://218.17.158.219:9090/platform-b2c/api/service/seller/order" />
  11. <entry key="prod" value="http://www.ubtoc.com/api/service/seller/order" />
  12. </map>
  13. </property>
  14. <property name="serviceInterface"
  15. value="com.uas.api.b2c_erp.seller.service.OrderService" />
  16. <property name="overloadEnabled" value="true" />
  17. <property name="hessian2" value="true" />
  18. </bean>
  19. <bean id="api.invoiceService" class="com.uas.remoting.hessian.MultiProxyFactoryBean">
  20. <property name="proxyFactory" ref="signedProxyFactory" />
  21. <property name="serviceUrls">
  22. <map>
  23. <entry key="test"
  24. value="http://218.17.158.219:9090/platform-b2c/api/service/seller/invoice" />
  25. <entry key="prod" value="http://www.ubtoc.com/api/service/seller/invoice" />
  26. </map>
  27. </property>
  28. <property name="serviceInterface"
  29. value="com.uas.api.b2c_erp.seller.service.InvoiceService" />
  30. <property name="overloadEnabled" value="true" />
  31. <property name="hessian2" value="true" />
  32. </bean>
  33. <bean id="api.purchaseService" class="com.uas.remoting.hessian.MultiProxyFactoryBean">
  34. <property name="proxyFactory" ref="signedProxyFactory" />
  35. <property name="serviceUrls">
  36. <map>
  37. <entry key="test"
  38. value="http://218.17.158.219:9090/platform-b2c/api/service/buyer/purchase" />
  39. <entry key="prod" value="http://www.ubtoc.com/api/service/buyer/purchase" />
  40. </map>
  41. </property>
  42. <property name="serviceInterface"
  43. value="com.uas.api.b2c_erp.buyer.service.PurchaseService" />
  44. <property name="overloadEnabled" value="true" />
  45. <property name="hessian2" value="true" />
  46. </bean>
  47. <bean id="api.invoiceNotifyService" class="com.uas.remoting.hessian.MultiProxyFactoryBean">
  48. <property name="proxyFactory" ref="signedProxyFactory" />
  49. <property name="serviceUrls">
  50. <map>
  51. <entry key="test"
  52. value="http://218.17.158.219:9090/platform-b2c/api/service/buyer/invoiceNotify" />
  53. <entry key="prod"
  54. value="http://www.ubtoc.com/api/service/buyer/invoiceNotify" />
  55. </map>
  56. </property>
  57. <property name="serviceInterface"
  58. value="com.uas.api.b2c_erp.buyer.service.InvoiceNotifyService" />
  59. <property name="overloadEnabled" value="true" />
  60. <property name="hessian2" value="true" />
  61. </bean>
  62. <bean id="api.goodsUpAndDownService" class="com.uas.remoting.hessian.MultiProxyFactoryBean">
  63. <property name="proxyFactory" ref="signedProxyFactory" />
  64. <property name="serviceUrls">
  65. <map>
  66. <entry key="test"
  67. value="http://218.17.158.219:9090/platform-b2c/api/service/seller/goodsUpAndDown" />
  68. <entry key="prod"
  69. value="http://www.ubtoc.com/api/service/seller/goodsUpAndDown" />
  70. </map>
  71. </property>
  72. <property name="serviceInterface"
  73. value="com.uas.api.b2c_erp.seller.service.GoodsUpAndDownService" />
  74. <property name="overloadEnabled" value="true" />
  75. <property name="hessian2" value="true" />
  76. </bean>
  77. <bean id="api.componentService" class="com.uas.remoting.hessian.MultiProxyFactoryBean">
  78. <property name="proxyFactory" ref="signedProxyFactory" />
  79. <property name="serviceUrls">
  80. <map>
  81. <entry key="test"
  82. value="http://218.17.158.219:9090/platform-b2c/api/service/baisc/component" />
  83. <entry key="prod"
  84. value="http://www.ubtoc.com/api/service/baisc/component" />
  85. </map>
  86. </property>
  87. <property name="serviceInterface"
  88. value="com.uas.api.b2c_erp.baisc.service.ComponentService" />
  89. <property name="overloadEnabled" value="true" />
  90. <property name="hessian2" value="true" />
  91. </bean>
  92. <!-- 类目查询接口 -->
  93. <bean id="api.kindService" class="com.uas.remoting.hessian.MultiProxyFactoryBean">
  94. <property name="proxyFactory" ref="signedProxyFactory" />
  95. <property name="serviceUrls">
  96. <map>
  97. <entry key="test"
  98. value="http://218.17.158.219:9090/platform-b2c/api/service/baisc/kind" />
  99. <entry key="prod"
  100. value="http://www.ubtoc.com/api/service/baisc/kind" />
  101. </map>
  102. </property>
  103. <property name="serviceInterface"
  104. value="com.uas.api.b2c_erp.baisc.service.KindService" />
  105. <property name="overloadEnabled" value="true" />
  106. <property name="hessian2" value="true" />
  107. </bean>
  108. <!-- 品牌申请接口 -->
  109. <bean id="api.brandSubmitService" class="com.uas.remoting.hessian.MultiProxyFactoryBean">
  110. <property name="proxyFactory" ref="signedProxyFactory" />
  111. <property name="serviceUrls">
  112. <map>
  113. <entry key="test"
  114. value="http://218.17.158.219:9090/platform-b2c/api/service/baisc/brandSubmit" />
  115. <entry key="prod"
  116. value="http://www.ubtoc.com/api/service/baisc/brandSubmit" />
  117. </map>
  118. </property>
  119. <property name="serviceInterface"
  120. value="com.uas.api.b2c_erp.baisc.service.BrandSubmitUasService" />
  121. <property name="overloadEnabled" value="true" />
  122. <property name="hessian2" value="true" />
  123. </bean>
  124. <!-- 器件申请接口 -->
  125. <bean id="api.componentSubmitService" class="com.uas.remoting.hessian.MultiProxyFactoryBean">
  126. <property name="proxyFactory" ref="signedProxyFactory" />
  127. <property name="serviceUrls">
  128. <map>
  129. <entry key="test"
  130. value="http://218.17.158.219:9090/platform-b2c/api/service/baisc/componentSubmit" />
  131. <entry key="prod"
  132. value="http://www.ubtoc.com/api/service/baisc/componentSubmit" />
  133. </map>
  134. </property>
  135. <property name="serviceInterface"
  136. value="com.uas.api.b2c_erp.baisc.service.ComponentSubmitUasService" />
  137. <property name="overloadEnabled" value="true" />
  138. <property name="hessian2" value="true" />
  139. </bean>
  140. <!-- 图片上传接口 -->
  141. <bean id="api.ImageService" class="com.uas.remoting.hessian.MultiProxyFactoryBean">
  142. <property name="proxyFactory" ref="signedProxyFactory" />
  143. <property name="serviceUrls">
  144. <map>
  145. <entry key="test"
  146. value="http://218.17.158.219:9090/platform-b2c/api/service/basic/image" />
  147. <entry key="prod"
  148. value="http://www.ubtoc.com/api/service/basic/image" />
  149. </map>
  150. </property>
  151. <property name="serviceInterface"
  152. value="com.uas.api.b2c_erp.baisc.service.ImageUasService" />
  153. <property name="overloadEnabled" value="true" />
  154. <property name="hessian2" value="true" />
  155. </bean>
  156. <!-- 品牌信息查询接-->
  157. <bean id="api.BrandService" class="com.uas.remoting.hessian.MultiProxyFactoryBean">
  158. <property name="proxyFactory" ref="signedProxyFactory" />
  159. <property name="serviceUrls">
  160. <map>
  161. <entry key="test"
  162. value="http://218.17.158.219:9090/platform-b2c/api/service/basic/brand" />
  163. <entry key="prod"
  164. value="http://www.ubtoc.com/api/service/basic/brand" />
  165. </map>
  166. </property>
  167. <property name="serviceInterface"
  168. value="com.uas.api.b2c_erp.baisc.service.BrandService" />
  169. <property name="overloadEnabled" value="true" />
  170. <property name="hessian2" value="true" />
  171. </bean>
  172. </beans>