Package org.apache.wsdl

Examples of org.apache.wsdl.WSDLExtensibilityElement


        if (typesList==null){
            //there are no types to be code generated
            return;
        }
        List typesArray = typesList.getExtensibilityElements();
        WSDLExtensibilityElement extensiblityElt = null;
        XmlObject[] xmlObjects=new XmlObject[typesArray.size()];

        for (int i = 0; i < typesArray.size(); i++) {
            extensiblityElt =  (WSDLExtensibilityElement)typesArray.get(i);
            if (ExtensionConstants.SCHEMA.equals(extensiblityElt.getType())) {
                try {
                    Element schemaElement = ((Schema)extensiblityElt).getElelment();
//                    //add the namespaces
                    XmlOptions options = new XmlOptions();
                    options.setLoadAdditionalNamespaces(configuration.getWom().getNamespaces());
View Full Code Here


            //there are no types to be considered
            return;
        }
        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()))
View Full Code Here

                this.configuration.setTypeMapper(new DefaultTypeMapper());
                return;
            }

            List typesArray = typesList.getExtensibilityElements();
            WSDLExtensibilityElement extensiblityElt = null;
            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
View Full Code Here

                this.configuration.setTypeMapper(new DefaultTypeMapper());
                return;
            }

            List typesArray = typesList.getExtensibilityElements();
            WSDLExtensibilityElement extensiblityElt = null;

            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,
View Full Code Here

     * @return
     */
    public WSDLExtensibilityElement getFirstElement(QName qName) {
        Iterator iterator = this.getExtensibilityElements().iterator();
        while (iterator.hasNext()) {
            WSDLExtensibilityElement temp = (WSDLExtensibilityElement) iterator.next();
            if (temp.getType().equals(qName))
                return temp;
        }

        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.wsdl.WSDLExtensibilityElement

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.