Package org.apache.woden

Examples of org.apache.woden.WSDLFactory


     * @see TestCase#setUp()
     */
    protected void setUp() throws Exception
    {
        super.setUp();
        WSDLFactory factory = null;
        try {
            factory = WSDLFactory.newInstance();
        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }
        fDescriptionElement = factory.newDescription();
        fDescriptionElement.setTargetNamespace(URI.create(TNS));
        fInterfaceElement = fDescriptionElement.addInterfaceElement();
        fInterfaceElement.setName(new NCName(INTF_NAME));
        fFaultElement = fInterfaceElement.addInterfaceFaultElement();
        fFaultElement.setName(new NCName(FAULT_NAME));
View Full Code Here


    /*
     * @see TestCase#setUp()
     */
    protected void setUp() throws Exception
    {
        WSDLFactory factory = null;
        try {
            factory = WSDLFactory.newInstance();
        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }
       
        super.setUp();
        fDescriptionElement = factory.newDescription();
        fInterfaceElement = fDescriptionElement.addInterfaceElement();
        fInterfaceElement.setName(new NCName(INTF_NAME));
        fInterfaceOperationElement = fInterfaceElement.addInterfaceOperationElement();
        fInterfaceOperationElement.setName(new NCName(INTOP_NAME));

View Full Code Here

     return new TestSuite(InterfaceFaultElementTest.class);
  }
   
    public void setUp() {

        WSDLFactory factory = null;
        try {
            factory = WSDLFactory.newInstance();
        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }
       
        fDescriptionElement = factory.newDescription();
        fDescriptionElement.setTargetNamespace(URI.create(TNS));
        fInterfaceElement = fDescriptionElement.addInterfaceElement();
        fInterfaceElement.setName(new NCName(INTF_NAME));
        fFaultElement = fInterfaceElement.addInterfaceFaultElement();
    }
View Full Code Here

     * the QNameTokenUnion is of type qname and if it is of type token, that there is no
     * element declaration returned.
     */
    public void testGetXmlSchemaElement() throws Exception
    {
        WSDLFactory factory = null;
        try {
            factory = WSDLFactory.newInstance();
        } 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();
        InterfaceFaultElement faultElement = interfaceElement.addInterfaceFaultElement();
       
        // Default case:
        XmlSchemaElement retrievedElement = faultElement.getXmlSchemaElement();
View Full Code Here

     * Create an InterfaceElement but don't add it to a DescriptionElement
     * and ensure that getQName() returns a QName with a namespace value
     * of the emptystring.
     */
    public void testNamespaceOfGetNameReturnValue() {
        WSDLFactory factory = null;
        try {
            factory = WSDLFactory.newInstance();
        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }
       
        DescriptionElement de = factory.newDescription();
        InterfaceElement ie = de.addInterfaceElement();
        ie.setName(new NCName("foo"));
        String namespace = ie.getName().getNamespaceURI();
        assertTrue("namespace value should be \"\" but is " + namespace, namespace.equals(""));
    }
View Full Code Here

        }
        return readInTheWSDLFile(document);
    }

    private Description readInTheWSDLFile(Document document) throws WSDLException {
        WSDLFactory factory = WSDLFactory.newInstance();
        WSDLReader reader = factory.newWSDLReader();
        if (customWSDLResolver != null) {
            reader.setURIResolver(customWSDLResolver);
        }
        // This turns on WSDL validation which is set off by default.
        reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
View Full Code Here

     * @see TestCase#setUp()
     */
    protected void setUp() throws Exception
    {
        super.setUp();
        WSDLFactory factory = WSDLFactory.newInstance();
      fDescriptionElement = factory.newDescription();
      fBindingElement = fDescriptionElement.addBindingElement();
      fBindingElement.setName(new NCName("bindingName"));
      fInterfaceElement = fDescriptionElement.addInterfaceElement();
      fInterfaceElement.setName(new NCName("interfaceName"));
      fServiceElement = fDescriptionElement.addServiceElement();
View Full Code Here

   * TODO Need to check model structure for XmlSchema
   */

  public void testGetXmlSchemaElement() throws Exception
    {
        WSDLFactory factory = null;
        try {
            factory = WSDLFactory.newInstance();
        } 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

     return new TestSuite(InterfaceFaultElementTest.class);
  }
   
    public void setUp() {

        WSDLFactory factory = null;
        try {
            factory = WSDLFactory.newInstance();
        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }
       
        fDescriptionElement = factory.newDescription();
        fDescriptionElement.setTargetNamespace(URI.create(TNS));
        fInterfaceElement = fDescriptionElement.addInterfaceElement();
        fInterfaceElement.setName(new NCName(INTF_NAME));
        fFaultElement = fInterfaceElement.addInterfaceFaultElement();
    }
View Full Code Here

     * the QNameTokenUnion is of type qname and if it is of type token, that there is no
     * element declaration returned.
     */
    public void testGetXmlSchemaElement() throws Exception
    {
        WSDLFactory factory = null;
        try {
            factory = WSDLFactory.newInstance();
        } 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();
        InterfaceFaultElement faultElement = interfaceElement.addInterfaceFaultElement();
       
        // Default case:
        XmlSchemaElement retrievedElement = faultElement.getXmlSchemaElement();
View Full Code Here

TOP

Related Classes of org.apache.woden.WSDLFactory

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.