Spring配置管理下,cxf客户端的几种创建

 

1,  org.apache.cxf.jaxws.JaxWsProxyFactoryBean配置

 

  <bean id="financeAdaptor" class="com.cernet.soa.FinanceAdaptor" factory-bean="financeAdaptorSrvcFactory" factory-method="create"/>

 

       <bean id="financeAdaptorSrvcFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">

                       <property name="serviceClass" value="com.cernet.soa.FinanceAdaptor" />

                       <property name="address" value="${host.url}/financeAdaptor" />

                       <property name="outInterceptors">

                                       <list>

                                                       <bean class="org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor" />

                                                       <ref bean="wss4jOutConfiguration" />

                                       </list>

                       </property>

                       <property name="inInterceptors">

                                       <list>

                                                       <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />

                                                       <ref bean="wss4jInConfiguration" />

                                       </list>

                       </property>

       </bean>

2,   用标签<jaxws:client直接配置:

<jaxws:client id="orderClient" serviceClass=

                 "demo.order.OrderProcess" address=

                 "http://localhost:8080/orderapp/OrderProcess" />


                    它都有什么属性或子元素可配?

cxf-2.2.8.jar下,/schemas/jaxws.xsd文件中有这个标签"<jaxws:client"的schemas

            

3,  <cxf:bus> + <http:conduit方式:

apache-cxf-2.2.8\samples\configuration_interceptor\client.xml中的实例

 

你可能感兴趣的:(apache,spring,bean,配置管理,SOA)