<bean id="mybean" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> <property name="serviceUrl" value="http://localhost:8080/WebServices/SpringInv" /> <property name="serviceInterface" value="package.MyInterface" /> </bean>
try { HttpInvokerProxyFactoryBean test = new HttpInvokerProxyFactoryBean(); test.setServiceUrl("http://localhost:8080/WebServices/SpringInv"); test.setServiceInterface(package.MyInterface.class); test.afterPropertiesSet(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); }