behosoft-ediserivce.xml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
  6. xsi:schemaLocation="http://www.springframework.org/schema/beans
  7. http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
  8. http://www.springframework.org/schema/context
  9. http://www.springframework.org/schema/context/spring-context-2.5.xsd
  10. http://cxf.apache.org/jaxws
  11. http://cxf.apache.org/schemas/jaxws.xsd
  12. http://cxf.apache.org/transports/http/configuration
  13. http://cxf.apache.org/schemas/configuration/http-conf.xsd">
  14. <import resource="classpath:META-INF/cxf/cxf.xml" />
  15. <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
  16. <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
  17. <bean id="outLoggingInterceptor" class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
  18. <bean id="specialLisService" class="com.behosoft.edi.ws.service.impl.SpecialLisServiceImpl" />
  19. <!--注意下面的address,这里的address的名称就是访问的WebService的name -->
  20. <jaxws:server id="specialLisServer"
  21. serviceClass="com.behosoft.edi.ws.service.ISpecialLisService" address="/specialService">
  22. <jaxws:serviceBean> <!-- 要暴露的 bean 的引用 -->
  23. <ref bean="specialLisService" />
  24. </jaxws:serviceBean>
  25. <jaxws:outInterceptors>
  26. <ref bean="outLoggingInterceptor" />
  27. </jaxws:outInterceptors>
  28. </jaxws:server>
  29. <bean id="ediServiceImpl" class="com.behosoft.edi.ws.service.impl.EdiServiceImpl" />
  30. <!--注意下面的address,这里的address的名称就是访问的WebService的name -->
  31. <jaxws:server id="ediServer"
  32. serviceClass="com.behosoft.edi.ws.service.IEdiService" address="/service">
  33. <jaxws:serviceBean> <!-- 要暴露的 bean 的引用 -->
  34. <ref bean="ediServiceImpl" />
  35. </jaxws:serviceBean>
  36. <jaxws:outInterceptors>
  37. <ref bean="outLoggingInterceptor" />
  38. </jaxws:outInterceptors>
  39. </jaxws:server>
  40. <bean id="wcsServiceImpl" class="com.behosoft.edi.ws.service.impl.WcsServiceImpl" />
  41. <!--注意下面的address,这里的address的名称就是访问的WebService的name -->
  42. <jaxws:server id="wcsServer"
  43. serviceClass="com.behosoft.edi.ws.service.IWcsService" address="/wcs">
  44. <jaxws:serviceBean> <!-- 要暴露的 bean 的引用 -->
  45. <ref bean="wcsServiceImpl" />
  46. </jaxws:serviceBean>
  47. <jaxws:outInterceptors>
  48. <ref bean="outLoggingInterceptor" />
  49. </jaxws:outInterceptors>
  50. </jaxws:server>
  51. <!--lis客户端 -->
  52. <jaxws:client id="lisServiceClient"
  53. serviceClass="com.behosoft.lis.edi.ws.service.ILisWebSevice" address="http://${clis.host}:${clis.port}/BH_CLIS/webservice/lisWs" />
  54. <!-- XJ的所有外部连接配置 -->
  55. <import resource="classpath:config/edi/custom/behosoft-ediserivce-xj.xml" />
  56. <jaxws:client id="uniqueKeyClient"
  57. serviceClass="com.behosoft.cluster.webservice.interfaces.UniqueKeyWebService" address="http://${cluster.host}:${cluster.port}/BH_CLUSTER/webservice/UniqueKeyService" />
  58. </beans>