These code examples were ranked by Codota’s semantic indexing as the best open source examples for HttpInvokerProxyFactoryBean getObject method.
@Test public void testHttpInvokeSpringService() throws Exception { ComplexData cd = new ComplexData("Foo", new Integer(13)); HttpInvokerProxyFactoryBean invoker = new HttpInvokerProxyFactoryBean(); invoker.setServiceInterface(WorkInterface.class); invoker.setServiceUrl(SPRING_HTTP_ENDPOINT); invoker.afterPropertiesSet(); WorkInterface worker = (WorkInterface)invoker.getObject(); ComplexData data = worker.executeComplexity(cd); assertNotNull(data); assertEquals(data.getSomeString(), "Foo Received"); assertEquals(data.getSomeInteger(), new Integer(14)); } }