httpInvokerProxyFactoryBean.setServiceInterface(LoginService.class);
httpInvokerProxyFactoryBean.setServiceUrl(LOGIN_SERVICE);
httpInvokerProxyFactoryBean.setHttpInvokerRequestExecutor(new CommonsHttpInvokerRequestExecutor());
httpInvokerProxyFactoryBean.afterPropertiesSet();
LoginService loginService = (LoginService)httpInvokerProxyFactoryBean.getObject();
sessionId = loginService.doLogin("user1", "pass1");
}
{
final HttpInvokerProxyFactoryBean httpInvokerProxyFactoryBean = new HttpInvokerProxyFactoryBean();
httpInvokerProxyFactoryBean.setServiceInterface(CopperMonitoringService.class);