Package org.apache.cxf.aegis.inheritance.ws2

Examples of org.apache.cxf.aegis.inheritance.ws2.WS2


public class WS2Impl implements WS2 {
    private Map<String, ParentBean> map = new HashMap<String, ParentBean>();

    public WS2Impl() {
        ParentBean x = new ParentBean("X", new ContentBean1("data1-X"));
        ParentBean y = new ParentBean("Y", new ContentBean2("data1-Y", "content2-Y"));
        map.put(x.getId(), x);
        map.put(y.getId(), y);
    }
View Full Code Here


public class WS2Impl implements WS2 {
    private Map<String, ParentBean> map = new HashMap<String, ParentBean>();

    public WS2Impl() {
        ParentBean x = new ParentBean("X", new ContentBean1("data1-X"));
        ParentBean y = new ParentBean("Y", new ContentBean2("data1-Y", "content2-Y"));
        map.put(x.getId(), x);
        map.put(y.getId(), y);
    }
View Full Code Here

            t.printStackTrace(System.out);
            System.out.println();
        }

        // test WS2
        WS2 ws2Proxy = (WS2) xFireHelper.createClientProxy(xFireHelper.createServiceWS2(), args[0]);

        System.out.println(ws2Proxy.getParentBean("X"));
        System.out.println(ws2Proxy.getParentBean("Y"));

        String baseId = System.currentTimeMillis() + "-";
        ParentBean parentBean;

        parentBean = new ParentBean(baseId + "A", new ContentBean1("data1-A"));
        ws2Proxy.putParentBean(parentBean);
        System.out.println(ws2Proxy.getParentBean(baseId + "A"));

        parentBean = new ParentBean(baseId + "B", new ContentBean2("data1-B", "content2-B"));
        ws2Proxy.putParentBean(parentBean);
        System.out.println(ws2Proxy.getParentBean(baseId + "B"));

        try
        {
            ws2Proxy.putParentBean(parentBean);
        }
        catch (AlreadyExistsException e)
        {
            System.out.println(e);
        }
        catch (Throwable t)
        {
            System.out.println();
            t.printStackTrace(System.out);
            System.out.println();
        }

        try
        {
            ws2Proxy.getParentBean("Z");
        }
        catch (NotFoundException e)
        {
            System.out.println(e);
        }
View Full Code Here

TOP

Related Classes of org.apache.cxf.aegis.inheritance.ws2.WS2

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.