Package org.jdom

Examples of org.jdom.Document


    }

    public void testGetDoubles()
            throws Exception
    {
        Document response = invokeService("ListService",
                                          "/org/codehaus/xfire/aegis/type/collection/GetDoubles.xml");

        addNamespace("l", "http://collection.type.aegis.xfire.codehaus.org");
        assertValid("//l:out/l:double[text()='1.0']", response);
    }
View Full Code Here


    }

    public void testReceiveStrings()
            throws Exception
    {
        Document response = invokeService("ListService",
                                          "/org/codehaus/xfire/aegis/type/collection/ReceiveStrings.xml");

        addNamespace("l", "http://collection.type.aegis.xfire.codehaus.org");
        assertValid("//l:receiveStringsResponse", response);
    }
View Full Code Here

    }

    public void testReceiveDoubles()
            throws Exception
    {
        Document response = invokeService("ListService",
                                          "/org/codehaus/xfire/aegis/type/collection/ReceiveDoubles.xml");

        addNamespace("l", "http://collection.type.aegis.xfire.codehaus.org");
        assertValid("//l:receiveDoublesResponse", response);
    }
View Full Code Here

    }

    public void testStringsWSDL()
            throws Exception
    {
        Document wsdl = getWSDLDocument("ListService");

        addNamespace("xsd", SoapConstants.XSD);

        String ns = "http://collection.type.aegis.xfire.codehaus.org";
        assertValid("//xsd:schema[@targetNamespace='" + ns + "']/xsd:complexType[@name='ArrayOfString']" +
View Full Code Here

        getServiceRegistry().register(endpoint);
    }

    public void testWSDL() throws Exception
    {
        Document doc =  getWSDLDocument("BeanCollectionInheritanceService");

        addNamespace("xsd", SoapConstants.XSD);
        assertValid("//xsd:element[@name='strings'][@type='tns:ArrayOfString']", doc);
        assertValid("//xsd:element[@name='doubles'][@type='tns:ArrayOfDouble']", doc);
    }
View Full Code Here

        getServiceRegistry().register(endpoint);
    }

    public void testWSDL() throws Exception
    {
        Document doc =  getWSDLDocument("BeanCollectionService");
       
        addNamespace("xsd", SoapConstants.XSD);
        assertValid("//xsd:element[@name='strings'][@type='tns:ArrayOfString']", doc);
        assertValid("//xsd:element[@name='doubles'][@type='tns:ArrayOfDouble']", doc);
    }
View Full Code Here

    }

    public void testWsdl()
        throws Exception
    {
        Document doc = getWSDLDocument("BookService");
        addNamespace("xsd", SoapConstants.XSD);
        assertValid("//xsd:schema[@targetNamespace='http://xfire.codehaus.org/']", doc);
    }
View Full Code Here

    }

    public void testAddBookService()
        throws Exception
    {
        Document response = invokeService("BookService", "AddBook.xml");
        addNamespace("w", "http://xfire.codehaus.org/");
        assertValid("//s:Body/w:addBookResponse/w:out", response);
    }
View Full Code Here

    public void testFindBookService()
        throws Exception
    {

        Document response = invokeService("BookService", "FindBook.xml");
        addNamespace("w", "http://xfire.codehaus.org/");
        assertValid("//s:Body/w:findBookResponse/w:out", response);
    }
View Full Code Here

        parser.setInput(getClass().getResourceAsStream("echo.xml"), null);
       
        XmlPullStreamReader reader = new XmlPullStreamReader(parser);
       
        StaxBuilder builder = new StaxBuilder();
        Document doc = builder.build(reader);
       
        printNode(doc);
    }
View Full Code Here

TOP

Related Classes of org.jdom.Document

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.