Package org.apache.cxf.aegis.inheritance.ws1

Examples of org.apache.cxf.aegis.inheritance.ws1.WS1


        pf.setAddress("local://WS1");
        pf.setProperties(props);
       
        client = (WS1) pf.create();

        Server server = createService(WS1.class, new WS1Impl(), "WS1", binding);
        new LoggingFeature().initialize(server, null);
        server.getEndpoint().getService().setInvoker(new BeanInvoker(new WS1Impl()));
    }
View Full Code Here


        pf.setAddress("local://WS1");
        pf.setProperties(props);

        client = pf.create(WS1.class);

        Server server = createService(WS1.class, new WS1Impl(), "WS1", binding);
        new LoggingFeature().initialize(server, null);
        server.getEndpoint().getService().setInvoker(new BeanInvoker(new WS1Impl()));
    }
View Full Code Here

        getServiceRegistry().register(service);
    }
   
    public void testClient() throws Exception
    {
        WS1 client = (WS1) new XFireProxyFactory(getXFire()).create(service, "xfire.local://WS1");
       
        try
        {
            client.throwException(true);
        }
        catch (WS1ExtendedException ex)
        {
            Object sb = ex.getSimpleBean();
            assertTrue(sb instanceof SimpleBean);
View Full Code Here

        }

        XFireHelper xFireHelper = new XFireHelper();

        // test WS1
        WS1 ws1Proxy = (WS1) xFireHelper.createClientProxy(xFireHelper.createServiceWS1(), args[0]);

        System.out.println(ws1Proxy.getBeanA());
        System.out.println(ws1Proxy.getBeanB());

        System.out.println(ws1Proxy.getBean("a"));
        System.out.println(ws1Proxy.getBean("b"));
        System.out.println(ws1Proxy.getBean("c"));

        System.out.println(ws1Proxy.getRootBean("a"));
        System.out.println(ws1Proxy.getRootBean("b"));
        System.out.println(ws1Proxy.getRootBean("c"));

        try
        {
            ws1Proxy.throwException(false);
        }
        catch (WS1Exception e)
        {
            System.out.println(e);
        }
        catch (Throwable t)
        {
            System.out.println();
            t.printStackTrace(System.out);
            System.out.println();
        }

        try
        {
            ws1Proxy.throwException(true);
        }
        catch (WS1Exception e)
        {
            System.out.println(e);
        }
View Full Code Here

TOP

Related Classes of org.apache.cxf.aegis.inheritance.ws1.WS1

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.