client-beans.xml 1.6 KB

123456789101112131415161718192021222324252627282930
  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"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xmlns:tx="http://www.springframework.org/schema/tx"
  6. xmlns:aop="http://www.springframework.org/schema/aop"
  7. xmlns:jaxws="http://cxf.apache.org/jaxws"
  8. xsi:schemaLocation="
  9. http://www.springframework.org/schema/beans
  10. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  11. http://www.springframework.org/schema/context
  12. http://www.springframework.org/schema/context/spring-context-3.0.xsd
  13. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
  14. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
  15. http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
  16. <!--
  17. <bean id="client" class="com.cxfws.ws.ICxfws" factory-bean="clientFactory" factory-method="create"/>
  18. <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
  19. <property name="serviceClass" value="com.cxfws.ws.ICxfws"/>
  20. <property name="address" value="http://localhost:8080/cxfwsWeb/service/cxfws"/>
  21. </bean>
  22. -->
  23. <jaxws:client id="client" serviceClass="com.cxfws.ws.ICxfws" address="http://localhost:8080/exchangeWeb/service/cxfws">
  24. <jaxws:outInterceptors>
  25. <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"></bean>
  26. </jaxws:outInterceptors>
  27. </jaxws:client>
  28. </beans>
  29. <!-- END SNIPPET: beans -->