81,092
社区成员
发帖
与我相关
我的任务
分享
<bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass" value="com.test.webservice.IService"/>
<property name="properties">
<props>
<prop key="http.proxySet">true</prop>
<prop key="http.proxyHost">192.168.2.1</prop>
<prop key="http.proxyPort">808</prop>
</props>
</property>
<property name="address" value="http://ip/webservice/CommunicationService"/>
</bean>
<bean id="communicationService" class="com.test.webservice.IService"
factory-bean="clientFactory" factory-method="create"/>
<jaxws:client
id="communicationService"
address="http://IP/cxf/webservice/CommunicationService"
serviceClass="com.test.webservice.IService">
</jaxws:client>