Package org.apache.woden.wsdl20.xml

Examples of org.apache.woden.wsdl20.xml.InterfaceElement.addNamespace()


        nonExistantNamespace = new URI("http://apache.org/nonExistantNamespace");
    }
   
    public void testAddGetNamespace() {
        DescriptionElement descriptionElement = factory.newDescription();
        descriptionElement.addNamespace(prefix1,namespace1);
        descriptionElement.addNamespace(null, namespace2);
       
            //Get namespace and prefix on description
            URI uri = descriptionElement.getNamespaceURI(prefix1);
            assertEquals("Retrieved NamespaceURI does not match that set", namespace1, uri);
View Full Code Here


    }
   
    public void testAddGetNamespace() {
        DescriptionElement descriptionElement = factory.newDescription();
        descriptionElement.addNamespace(prefix1,namespace1);
        descriptionElement.addNamespace(null, namespace2);
       
            //Get namespace and prefix on description
            URI uri = descriptionElement.getNamespaceURI(prefix1);
            assertEquals("Retrieved NamespaceURI does not match that set", namespace1, uri);
   
View Full Code Here

    }
   
    public void testRemoveNamespace() {
        //Build up wsdl20 element model.
        DescriptionElement descriptionElement = factory.newDescription();
        descriptionElement.addNamespace(prefix1,namespace1);
        assertNotNull(descriptionElement.getNamespaceURI(prefix1));
        assertNotNull(descriptionElement.getNamespacePrefix(namespace1));
       
        TypesElement typesElement = null;
        try {
View Full Code Here

       
        NamespaceDeclaration[] namespaces;
       
        //Description with two namespaces.
        DescriptionElement descriptionElement = factory.newDescription();
        descriptionElement.addNamespace(prefix1,namespace1);
        descriptionElement.addNamespace(prefix2,namespace2);
        //Service on description with two name spaces.
        ServiceElement serviceElement = descriptionElement.addServiceElement();
        serviceElement.addNamespace(prefix3, namespace3);
        serviceElement.addNamespace(prefix4, namespace4);
View Full Code Here

        NamespaceDeclaration[] namespaces;
       
        //Description with two namespaces.
        DescriptionElement descriptionElement = factory.newDescription();
        descriptionElement.addNamespace(prefix1,namespace1);
        descriptionElement.addNamespace(prefix2,namespace2);
        //Service on description with two name spaces.
        ServiceElement serviceElement = descriptionElement.addServiceElement();
        serviceElement.addNamespace(prefix3, namespace3);
        serviceElement.addNamespace(prefix4, namespace4);
        //Endpoint on description with two namespaces
View Full Code Here

            //Get undefined namespace and prefix.
            assertNull("Null was not returned when a non-existent namespace prefix was given", descriptionElement.getNamespaceURI(nonExistantPrefix));
            assertNull("Null was not returned when a non-existent namespace URI was given", descriptionElement.getNamespacePrefix(nonExistantNamespace));
   
        InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
        interfaceElement.addNamespace(prefix3, namespace3);
       
            //Get namespace and prefix on description
            uri = interfaceElement.getNamespaceURI(prefix1);
            assertEquals("Retrieved NamespaceURI does not match that set", namespace1, uri);
   
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.