Package org.jdom

Examples of org.jdom.Document


    }

    public void testLocalGetEmployee()
        throws Exception
    {
        Document response = invokeService("InheritanceService", "GetEmployee.xml");
        addNamespace("w", "urn:xfire:inheritance");
        addNamespace("p", "http://inheritance.aegis.xfire.codehaus.org");
        assertValid("//s:Body/w:getEmployeeResponse/w:out/p:division", response);
        assertValid("//s:Body/w:getEmployeeResponse/w:out[@xsi:type]", response);
    }
View Full Code Here


       
        MessagePartInfo part = (MessagePartInfo) operation.getOutputMessage().getMessageParts().get(0);
        assertTrue(part.isSchemaElement());
        assertEquals("http://test.bt.com/2006/08/Service/Schema", part.getName().getNamespaceURI());
       
        Document res = invokeService("XFireNamespaceProblemService", "/org/codehaus/xfire/x582/callmessage.xml");
       
        addNamespace("b", "http://test.bt.com/2006/08/Service/Schema");
        assertValid("//b:makeCallResponse/b:status", res);
       
        res = invokeService("XFireNamespaceProblemService", "/org/codehaus/xfire/x582/callmessage2.xml");
View Full Code Here

        getServiceRegistry().register(service);
    }

    public void testService() throws Exception
    {
        Document response = invokeService("Echo", "echo.xml");

        addNamespace("e", "urn:xfire:echo");
       
        assertValid("//out[text()='Yo Yo']", response);
       
View Full Code Here

    }

    public void testService()
            throws Exception
    {
        Document response = invokeService("SubscribeServiceEx", "/org/codehaus/xfire/jaxws/wsn-subscribe.xml");

        addNamespace("wsnt", "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd");
        assertValid("//wsnt:ResourceUnknownFault", response);
    }
View Full Code Here

       
        Holder h = new Holder();
        assertEquals("hi", echo.echo("hi", h));
        assertEquals("header2", h.getValue());
       
        Document wsdl = getWSDLDocument("Echo");

        addNamespace("wsdlsoap", WSDLBuilder.WSDL11_SOAP_NS);
        assertValid("//wsdl:input/wsdlsoap:header[@message='tns:echoRequestHeaders'][@part='in0']", wsdl);
        assertValid("//wsdl:output/wsdlsoap:header[@message='tns:echoResponseHeaders'][@part='out']", wsdl);
        assertValid("//wsdl:output/wsdlsoap:header[@message='tns:echoResponseHeaders'][@part='out0']", wsdl);
View Full Code Here

    conf.setServiceFactory(factory);
    factory.getServiceConfigurations().add(0, conf);
    Service service = getServiceFactory().create(EchoImpl.class);
        service.setInvoker(new BeanInvoker(new EchoImpl()));
        getServiceRegistry().register(service);
        Document wsdl = getWSDLDocument("EchoImpl");
        printNode(wsdl);
        addNamespace("wsdl", WSDLWriter.WSDL11_NS);
        addNamespace("xsd","http://www.w3.org/2001/XMLSchema");
        addNamespace("wsdlsoap","http://schemas.xmlsoap.org/wsdl/soap/");
       
View Full Code Here

    }

    public void testBeanService()
            throws Exception
    {
        Document response =
                invokeService("BeanServiceIntf",
                              "/org/codehaus/xfire/type/basic/intf/getBeanIntf.xml");

        addNamespace("b", "http://intf.basic.type.xfire.codehaus.org");
        assertValid("/s:Envelope/s:Body/b:getBeanIntfResponse", response);
View Full Code Here

    }

    public void testBeanServiceWSDL()
            throws Exception
    {
        Document doc = getWSDLDocument("BeanServiceIntf");

        addNamespace("wsdl", WSDLWriter.WSDL11_NS);
        addNamespace("wsdlsoap", WSDLWriter.WSDL11_SOAP_NS);
        addNamespace("xsd", SoapConstants.XSD);
View Full Code Here

    }

    public void testService()
            throws Exception
    {
        Document response = invokeService("SubscribeService",
                                          "/org/codehaus/xfire/jaxws/wsn-subscribe.xml");
       
        assertNotNull(response);
        assertNoFault(response);
View Full Code Here

    }

    public void testBeanServiceWSDLIgnoreObjectClass()
            throws Exception
    {
        Document doc = getWSDLDocument("BeanServiceIntf")
        addNamespace("wsdl", WSDLWriter.WSDL11_NS);
        addNamespace("wsdlsoap", WSDLWriter.WSDL11_SOAP_NS);
        addNamespace("xsd", SoapConstants.XSD);
        //toString shouldn't be exposed
        assertInvalid("//xsd:element[@name='getStuff']", 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.