Package org.jdom

Examples of org.jdom.Document


    }

    public void testWSDL()
            throws Exception
    {
        Document wsdl = getWSDLDocument("Echo");

        addNamespace("wsdl", WSDLWriter.WSDL11_NS);
        addNamespace("swsdl", WSDLWriter.WSDL11_SOAP_NS);

        assertValid("//wsdl:binding[@name='EchoXMPPBinding'][@type='tns:EchoPortType']", wsdl);
View Full Code Here


    getServiceRegistry().register(service);
   
    service.addOutHandler(new LoggingHandler());
    service.addOutHandler(new DOMOutHandler());
   
      Document d = getWSDLDocument("CollectionService");

      CollectionService client = (CollectionService)
        new XFireProxyFactory(getXFire()).create(service,
            "xfire.local://CollectionService");
     
View Full Code Here

        System.out.println(info.getType(prop1));
        assertTrue(info.getType(prop1) instanceof StringType);
       
        Element root = new Element("root", Namespace.getNamespace("xsd", SoapConstants.XSD));
        new Document(root);
        Element schema = new Element("schema", Namespace.getNamespace("xsd", SoapConstants.XSD));
        root.addContent(schema);
        type.writeSchema(schema);

        addNamespace("xsd", SoapConstants.XSD);
View Full Code Here

        getServiceRegistry().register(service);
    }

    public void testWSDL() throws Exception
    {
        Document wsdl = getWSDLDocument(service.getSimpleName());

        addNamespace("xsd", SoapConstants.XSD);
        assertValid("//xsd:element[@name='Notify']", wsdl);
    }
View Full Code Here

        getServiceRegistry().register(service);
    }

    public void testWSDL() throws Exception
    {
        Document wsdl = getWSDLDocument(service.getSimpleName());

        addNamespace("xsd", SoapConstants.XSD);
        assertValid("//xsd:element[@name='getValuesResponse']//xsd:element[@name='out'][@type='xsd:string']", wsdl);
        assertValid("//xsd:element[@name='getValuesResponse']//xsd:element[@name='out2'][@type='xsd:string']", wsdl);
    }
View Full Code Here

    public void testMapServiceWSDL() throws Exception
    {
        Service service = getServiceFactory().create(CustomTypeService.class);
        getServiceRegistry().register(service);
       
        Document wsdl = getWSDLDocument(service.getSimpleName());
        addNamespace("xsd", SoapConstants.XSD);
        assertValid("//xsd:element[@name='s'][@type='ns1:custom']", wsdl);
    }
View Full Code Here

    }

    public void testHeaders()
            throws Exception
    {
        Document response = invokeService("HeaderService", "/org/codehaus/xfire/annotations/jsr181/headerMessage.xml");
       
        assertNotNull(HeaderService.a);
        assertEquals("one", HeaderService.a);
        assertNotNull(HeaderService.b);
        assertEquals("three", HeaderService.b);
View Full Code Here

    }
   
    public void testAuth()
        throws Exception
    {
        Document response = invokeService("HeaderService", "/org/codehaus/xfire/annotations/jsr181/authMessage.xml");
       
        assertNotNull(HeaderService.authHeader);
        assertEquals("dan", HeaderService.authHeader.getUsername());
    }
View Full Code Here

    }

    public void testNoParams()
            throws Exception
    {
        Document response =
                invokeService("Doc", "/org/codehaus/xfire/message/document/document11-1.xml");

        addNamespace("d", "urn:Doc");
        assertValid("//d:getString1out", response);
        assertValid("//d:getString1out[text()=\"string\"]", response);
View Full Code Here

    }

    public void testOneParam()
            throws Exception
    {
        Document response =
                invokeService("Doc", "/org/codehaus/xfire/message/document/document11-2.xml");

        addNamespace("d", "urn:Doc");
        assertValid("//d:getString2out", response);
        assertValid("//d:getString2out[text()=\"bleh\"]", response);
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.