12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-2.5.xsd
- http://cxf.apache.org/jaxws
- http://cxf.apache.org/schemas/jaxws.xsd
- http://cxf.apache.org/transports/http/configuration
- http://cxf.apache.org/schemas/configuration/http-conf.xsd">
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
- <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
- <bean id="outLoggingInterceptor" class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
- <bean id="specialLisService" class="com.behosoft.edi.ws.service.impl.SpecialLisServiceImpl" />
- <!--注意下面的address,这里的address的名称就是访问的WebService的name -->
- <jaxws:server id="specialLisServer"
- serviceClass="com.behosoft.edi.ws.service.ISpecialLisService" address="/specialService">
- <jaxws:serviceBean> <!-- 要暴露的 bean 的引用 -->
- <ref bean="specialLisService" />
- </jaxws:serviceBean>
- <jaxws:outInterceptors>
- <ref bean="outLoggingInterceptor" />
- </jaxws:outInterceptors>
- </jaxws:server>
-
- <bean id="ediServiceImpl" class="com.behosoft.edi.ws.service.impl.EdiServiceImpl" />
- <!--注意下面的address,这里的address的名称就是访问的WebService的name -->
- <jaxws:server id="ediServer"
- serviceClass="com.behosoft.edi.ws.service.IEdiService" address="/service">
- <jaxws:serviceBean> <!-- 要暴露的 bean 的引用 -->
- <ref bean="ediServiceImpl" />
- </jaxws:serviceBean>
- <jaxws:outInterceptors>
- <ref bean="outLoggingInterceptor" />
- </jaxws:outInterceptors>
- </jaxws:server>
-
- <bean id="wcsServiceImpl" class="com.behosoft.edi.ws.service.impl.WcsServiceImpl" />
- <!--注意下面的address,这里的address的名称就是访问的WebService的name -->
- <jaxws:server id="wcsServer"
- serviceClass="com.behosoft.edi.ws.service.IWcsService" address="/wcs">
- <jaxws:serviceBean> <!-- 要暴露的 bean 的引用 -->
- <ref bean="wcsServiceImpl" />
- </jaxws:serviceBean>
- <jaxws:outInterceptors>
- <ref bean="outLoggingInterceptor" />
- </jaxws:outInterceptors>
- </jaxws:server>
-
- <!--lis客户端 -->
- <jaxws:client id="lisServiceClient"
- serviceClass="com.behosoft.lis.edi.ws.service.ILisWebSevice" address="http://${clis.host}:${clis.port}/BH_CLIS/webservice/lisWs" />
- <!-- XJ的所有外部连接配置 -->
- <import resource="classpath:config/edi/custom/behosoft-ediserivce-xj.xml" />
-
- <jaxws:client id="uniqueKeyClient"
- serviceClass="com.behosoft.cluster.webservice.interfaces.UniqueKeyWebService" address="http://${cluster.host}:${cluster.port}/BH_CLUSTER/webservice/UniqueKeyService" />
- </beans>
|