HttpInvokerProxyFactoryBean getObject - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for HttpInvokerProxyFactoryBean getObject method.

This code example shows how to use the following methods:afterPropertiesSet, getObject, setServiceInterface, setServiceUrl
 
    @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));
    } 
} 
7
CodeRank
getObject Method Overview
Return an instance (possibly shared or independent) of the object managed by this factory.
See Code Examples for other Spring Framework HttpInvokerProxyFactoryBean Methods: