Package org.codehaus.xfire.aegis.inheritance.ws1

Examples of org.codehaus.xfire.aegis.inheritance.ws1.BeanC


        a.setPropA("valueA");
        return a;
    }

    public BeanB getBeanB() {
        BeanB b = new BeanB();
        b.setPropA("valueA");
        b.setPropB("valueB");
        return b;
    }
View Full Code Here


    }

    // not exported to interface to "hide" BeanC from interface introspection
    public BeanC getBeanC()
    {
        BeanC c = new BeanC();
        c.setPropA("valueA");
        c.setPropB("valueB");
        c.setPropC("valueC");
        return c;
    }
View Full Code Here

        return b;
    }

    // not exported to interface to "hide" BeanC from interface introspection
    public BeanC getBeanC() {
        BeanC c = new BeanC();
        c.setPropA("valueA");
        c.setPropB("valueB");
        c.setPropC("valueC");
        return c;
    }
View Full Code Here

        return result;
    }

    public ResultBean getResultBean()
    {
        ResultBean resultBean = new ResultBean();
        resultBean.setResult1(listBeans());
        resultBean.setResult2(listRootBeans());

        return resultBean;
    }
View Full Code Here

        return result;
    }

    public ResultBean getResultBean() {
        ResultBean resultBean = new ResultBean();
        resultBean.setResult1(listBeans());
        resultBean.setResult2(listRootBeans());

        return resultBean;
    }
View Full Code Here

        return result;
    }

    public RootBean getRootBean(String id)
    {
        RootBean rootBean = new RootBean();
        rootBean.setId(id);
        rootBean.setChild(getBean(id));

        return rootBean;
    }
View Full Code Here

        return result;
    }

    public RootBean getRootBean(String id) {
        RootBean rootBean = new RootBean();
        rootBean.setId(id);
        rootBean.setChild(getBean(id));

        return rootBean;
    }
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

    public void throwException(boolean extendedOne)
        throws WS1Exception
    {
        if (extendedOne)
        {
            WS1Exception ex = new WS1ExtendedException("WS1 extended exception", 20, 30);
            ex.setSimpleBean(new SimpleBean());
            throw ex;
        }
        else
        {
            throw new WS1Exception("WS1 base exception", 10);
        }
    }
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.aegis.inheritance.ws1.BeanC

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.