Package org.apache.woden

Examples of org.apache.woden.WSDLFactory.newDescription()


 
  // Test that the assertion returns true when there are two binding operations defined with
  // unique interface operations.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      InterfaceElement interfac = descEl.addInterfaceElement();
      interfac.setName(name1);
      InterfaceOperationElement interfaceOperation = interfac.addInterfaceOperationElement();
      interfaceOperation.setName(name3);
View Full Code Here


            factory = WSDLFactory.newInstance();
        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }

        DescriptionElement desc = factory.newDescription();
        desc.addServiceElement();
      fEmptyService = desc.toComponent().getServices()[0];
    }

    /*
 
View Full Code Here

        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }

        // Description...
      DescriptionElement fDescElement = factory.newDescription();
     
      // Interface
      InterfaceElement fInterfaceElement = fDescElement.addInterfaceElement();
    fInterfaceElement.setName(new NCName("interface1"));
   
View Full Code Here

            factory = WSDLFactory.newInstance();
        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }
       
        DescriptionElement descElem = factory.newDescription();
        descElem.setTargetNamespace(new URI("urn:woden"));
        ServiceElement service = descElem.addServiceElement();
        service.setName(new NCName(fQName.getLocalPart()));
        assertTrue("QName returned by ServiceElement.getName() was not the one set by setName().",
                   fQName.equals(service.getName()));
View Full Code Here

        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }
     
      // Description...
      DescriptionElement fDescElement = factory.newDescription();
     
      // Binding...
        fBindingQName = new QName("binding1");
      BindingElement fBindingElement = fDescElement.addBindingElement();
        fBindingNCName = new NCName("binding1");
View Full Code Here

    protected void setUp() throws Exception
    {
        super.setUp();
        WSDLFactory factory = null;
        factory = WSDLFactory.newInstance();
        fDescriptionElement = factory.newDescription();
        fDescriptionElement.setTargetNamespace(URI.create(TNS));
      fTypesElement = fDescriptionElement.addTypesElement();
      fInlinedSchema1 = new InlinedSchemaImpl();
      fInlinedSchema2 = new InlinedSchemaImpl();
      fImportedSchema1 = new ImportedSchemaImpl();
View Full Code Here

        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }
       
    // Create the DescriptionElement->InterfaceElement->InterfaceOperationElement->InterfaceMessageReferenceElement hierarchy
    DescriptionElement descriptionElement = factory.newDescription();
    InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
    InterfaceOperationElement interfaceOperationElement = interfaceElement.addInterfaceOperationElement();
    InterfaceMessageReferenceElement messageReference = interfaceOperationElement.addInterfaceMessageReferenceElement();
   
    // Default case:
View Full Code Here

            factory = WSDLFactory.newInstance();
        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }

        fDescriptionElement = factory.newDescription();
        fBindingElement = fDescriptionElement.addBindingElement();
        fBindingElement.setName(new NCName("binding"));
        //fBinding = (Binding) fBindingElement;
        fTypeURI = new URI("http://www.w3.org/0000/00/apacheType");
        fBinding = fDescriptionElement.toComponent().getBinding(new QName("binding"));
View Full Code Here

        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }
       
    // Create the DescriptionElement->InterfaceElement->InterfaceOperationElement->InterfaceFaultReference hierarchy
        DescriptionElement desc = factory.newDescription();
    InterfaceElement interfaceElement = desc.addInterfaceElement();
    InterfaceOperationElement interfaceOperationElement = interfaceElement.addInterfaceOperationElement();

    // Add an InterfaceFault to the InterfaceElement
    InterfaceFaultElement faultElement = interfaceElement.addInterfaceFaultElement();
View Full Code Here

            factory = WSDLFactory.newInstance();
        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }

        DescriptionElement descriptionElement = factory.newDescription();
       
        // Create the BindingElement->InterfaceElement->InterfaceOperationElement->InterfaceMessageReferenceElement
        BindingElement bindingElement = descriptionElement.addBindingElement();
        bindingElement.setInterfaceName(new QName("interface1"));
       
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.