Examples of IF2SOAP


Examples of test.rpc.IF2SOAP

        }
    }

    public void testGetAllCategories() {
        try {
            IF2SOAP soap = m_soap;
            String[] categories = soap.getAllCategories();
            assertNotNull("categories is null", categories);
            System.out.println("allCategories:");
            for (int i = 0; i < categories.length; i++)
                System.out.println("cat[" + i + "]: " + categories[i]);
        } catch (Exception e) {
View Full Code Here

Examples of test.rpc.IF2SOAP

        }
    }

    public void testGetBeansByCategory() {
        try {
            IF2SOAP soap = m_soap;
            IF1[] beans = soap.getBeansByCategory("Test");
            assertNotNull("beans is null", beans);
            System.out.println("beansByCategory:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

Examples of test.rpc.IF2SOAP

        }
    }

    public void testGetBeansByCategoryFiltered() {
        try {
            IF2SOAP soap = m_soap;
            String[] filter = new String[1];
            filter[0] = "11011011011";
            IF1[] beans = soap.getBeansByCategory("Test", filter);
            assertNotNull("beans is null", beans);
            System.out.println("beansByCategoryFiltered:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

Examples of test.rpc.IF2SOAP

        }
    }

    public void testGetBeansByDate() {
        try {
            IF2SOAP soap = m_soap;
            Calendar[] dates = new Calendar[1];
            dates[0] = new GregorianCalendar();
            IF1[] beans = soap.getBeansByDate(dates);
            assertNotNull("beans is null", beans);
            System.out.println("beansByDate:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

Examples of test.rpc.IF2SOAP

        }
    }

    public void testGetBeansByDateFiltered() {
        try {
            IF2SOAP soap = m_soap;
            String[] filter = new String[1];
            filter[0] = "11011011011";
            Calendar[] dates = new Calendar[1];
            dates[0] = new GregorianCalendar();
            IF1[] beans = soap.getBeansByDate(dates, filter);
            assertNotNull("beans is null", beans);
            System.out.println("beansByDateFiltered:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

Examples of test.rpc.IF2SOAP

        }
    }

    public void testGetBeansByExpression() {
        try {
            IF2SOAP soap = m_soap;
            IF1[] beans = soap.getBeansByExpression(IF2SOAP.KEYWORD_EXP, "keyword");
            assertNotNull("beans is null", beans);
            System.out.println("beansByExpression:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

Examples of test.rpc.IF2SOAP

        }
    }

    public void testGetBeansByExpressionFiltered() {
        try {
            IF2SOAP soap = m_soap;
            String[] filter = new String[1];
            filter[0] = "11011011011";
            IF1[] beans = soap.getBeansByExpression(IF2SOAP.KEYWORD_EXP, "keyword", filter);
            assertNotNull("beans is null", beans);
            System.out.println("beansByExpressionFiltered:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here

Examples of test.rpc.IF2SOAP

        }
    }

    public void testGetXMLForBean() {
        try {
            IF2SOAP soap = m_soap;
            IF1 bean = soap.getBeanById("42042042042");
            String xml = soap.getXMLForBean(bean);
            assertNotNull("xml is null", xml);
            System.out.println("xmlForBean:");
            System.out.println("xml: " + xml);
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of test.rpc.IF2SOAP

    protected void tearDown() {
    } // tearDown

    public void testGetBeanById() {
        try {
            IF2SOAP soap = m_soap;
            IF1 bean = soap.getBeanById("42042042042");
            assertNotNull("bean is null", bean);
            System.out.println("beanById:");
            System.out.println("id: " + bean.getId());
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of test.rpc.IF2SOAP

        }
    }

    public void testGetAllBeans() {
        try {
            IF2SOAP soap = m_soap;
            IF1[] beans = soap.getAllBeans();
            assertNotNull("beans is null", beans);
            System.out.println("allBeans:");
            for (int i = 0; i < beans.length; i++)
                System.out.println("id[" + i + "]: " + beans[i].getId());
        } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.