Package org.apache.wsdl.extensions

Examples of org.apache.wsdl.extensions.Schema


      element = (WSDLExtensibilityElement) iterator.next();
      if (ExtensionConstants.SCHEMA.equals(element.getType()))
        break;
    }
    assertNotNull(element);
    Schema schema = (Schema) element;
    NodeList childNodes = schema.getElelment().getChildNodes();
    Element insertedElementForMessageReference = null;
    for (int i = 0; i < childNodes.getLength(); i++) {
      Node item = childNodes.item(i);
      if (item instanceof Element
          && "complexType".equals(((Element) item).getTagName())
View Full Code Here


        Iterator iterator = typesList.getExtensibilityElements().iterator();
        while (iterator.hasNext()) {
            WSDLExtensibilityElement element = (WSDLExtensibilityElement) iterator.next();
            boolean targetnamespaceFound = false;
            if (ExtensionConstants.SCHEMA.equals(element.getType())) {
                Schema schema = (Schema) element;
                NamedNodeMap attributes = schema.getElelment().getAttributes();
                for (int i = 0; i < attributes.getLength(); i++) {
                    if (TARGETNAMESPACE_STRING.equalsIgnoreCase(
                            attributes.item(i).getLocalName()))
                        targetnamespaceFound = true;
                }
View Full Code Here

            SchemaTypeSystem sts  = null;
         
            Vector xmlObjectsVector = new Vector();
            for (int i = 0; i < typesArray.size(); i++) {
                extensiblityElt = (WSDLExtensibilityElement) typesArray.get(i);
                Schema schema = null;

                if (ExtensionConstants.SCHEMA.equals(extensiblityElt.getType())) {
                    schema = (Schema) extensiblityElt;
                    XmlOptions options = new XmlOptions();
                    options.setLoadAdditionalNamespaces(
                            configuration.getWom().getNamespaces()); //add the namespaces

                    Stack importedSchemaStack = schema.getImportedSchemaStack();
                    //compile these schemas
                    while (!importedSchemaStack.isEmpty()){
                        xmlObjectsVector.add(
                                XmlObject.Factory.parse(
                                        ((javax.wsdl.extensions.schema.Schema)importedSchemaStack.pop()).getElement()
View Full Code Here

            for (int i = 0; i < typesArray.size(); i++) {
                extensiblityElt = (WSDLExtensibilityElement) typesArray.get(i);
                Vector xmlObjectsVector = new Vector();
                XmlSchemaCollection schemaColl = new XmlSchemaCollection();
                Schema schema = null;

                if (ExtensionConstants.SCHEMA.equals(extensiblityElt.getType())) {
                    schema = (Schema) extensiblityElt;
                    Map inScopeNS = configuration.getWom().getNamespaces();
                    for (Iterator it = inScopeNS.keySet().iterator(); it.hasNext();) {
                        String prefix = (String) it.next();
                        schemaColl.mapNamespace(prefix,
                                                (String)inScopeNS.get(prefix));
                    }

                    Stack importedSchemaStack = schema.getImportedSchemaStack();
                    //compile these schemas
                    while (!importedSchemaStack.isEmpty()) {
                        Element el = ((javax.wsdl.extensions.schema.Schema)importedSchemaStack.pop()).getElement();
                        XmlSchema thisSchema = schemaColl.read(el);
                        xmlObjectsVector.add(thisSchema);
View Full Code Here

        QName element2 = operation2.getInputMessage().getElement();
        assertEquals(element1, element2);

        Iterator iterator = womDescription.getTypes().getExtensibilityElements()
                .iterator();
        Schema types = null;
        while (iterator.hasNext()) {
            WSDLExtensibilityElement temp = (WSDLExtensibilityElement) iterator.next();
            if (ExtensionConstants.SCHEMA.equals(temp.getType())) {
                types = (Schema) temp;
            }
        }
        int numberOfBookQuote_getBookPrice = 0;
        NodeList childNodes = types.getElelment().getChildNodes();
        for (int i = 0; i < childNodes.getLength(); i++) {
            Node item = childNodes.item(i);
            if (item instanceof Element) {
                Element temp = (Element) item;
                if ("complexType".equals(temp.getNodeName()) &&
View Full Code Here

            element = (WSDLExtensibilityElement) iterator.next();
            if (ExtensionConstants.SCHEMA.equals(element.getType()))
                break;
        }
        assertNotNull(element);
        Schema schema = (Schema) element;
        NodeList childNodes = schema.getElelment().getChildNodes();
        Element insertedElementForMessageReference = null;
        for (int i = 0; i < childNodes.getLength(); i++) {
            Node item = childNodes.item(i);
            if (item instanceof Element
                    && "complexType".equals(((Element) item).getTagName())
View Full Code Here

TOP

Related Classes of org.apache.wsdl.extensions.Schema

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.