服务端:
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml"/>
<bean id="xfireService" name="/wsUserManager.service" class="org.codehaus.xfire.spring.remoting.XFireExporter">
<property name="serviceFactory" ref="xfire.serviceFactory"/>
<property name="xfire" ref="xfire"/>
<property name="serviceBean" ref="userManagerProxy"/>
<property name="serviceClass" value="zxb.module.user.IUserManager"/>
</bean>
客户端:
<bean id="remoteUserService" class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean" lazy-init="true">
<property name="wsdlDocumentUrl" value="http://127.0.0.1:8080/imtiService/wsUserManager.service?wsdl"/>
<property name="serviceInterface" value="zxb.module.user.IUserManager"/>
</bean>