<bean id="remoteService" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
<property name="serviceUrl" value="http://localhost:8080/remoteService"/>
<property name="serviceInterface" value="com.example.RemoteService"/>
</bean>
<bean name="/remoteService" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
<property name="service" ref="remoteServiceImpl"/>
<property name="serviceInterface" value="com.example.RemoteService"/>
</bean>