Package org.apache.wsdl

Examples of org.apache.wsdl.WSDLExtensibilityElement


            //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;
                Element schemaElement = schema.getElement();
                //first check whether the schema include only a single import statement.
                //As per the nature of WSDL if the schema has a single import ONLY, then the
                //schema element need not contain a target namespace.
View Full Code Here


            List typesArray = typesList.getExtensibilityElements();
            //this a list that keeps the already processed schemas
            List processedSchemas = new ArrayList();

            WSDLExtensibilityElement extensiblityElt;
            SchemaTypeSystem sts;
            Vector xmlObjectsVector = new Vector();
            //create the type mapper
            JavaTypeMapper mapper = new JavaTypeMapper();

            for (int i = 0; i < typesArray.size(); i++) {
                extensiblityElt = (WSDLExtensibilityElement) typesArray.get(i);
                Schema schema;

                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

        WSDLBindingMessageReference input = bindingOp.getInput();
        if (input != null) {
            Iterator extIterator = input.getExtensibilityElements()
                    .iterator();
            while (extIterator.hasNext()) {
                WSDLExtensibilityElement element = (WSDLExtensibilityElement) extIterator.next();
                if (ExtensionConstants.SOAP_11_BODY.equals(element.getType()) ||
                        ExtensionConstants.SOAP_12_BODY.equals(element.getType())) {
                    if (WSDLConstants.WSDL_USE_ENCODED.equals(
                            ((SOAPBody) element).getUse())) {
                        throw new RuntimeException(
                                CodegenMessages.getMessage("extension.encodedNotSupported"));
                    }
View Full Code Here

        Element endpointElement = doc.createElement("endpoint");
        org.apache.wsdl.extensions.SOAPAddress address = null;
        Iterator iterator = endpoint.getExtensibilityElements().iterator();

        while (iterator.hasNext()) {
            WSDLExtensibilityElement element = (WSDLExtensibilityElement) iterator.next();

            if (ExtensionConstants.SOAP_11_ADDRESS.equals(element.getType())
                    || ExtensionConstants.SOAP_12_ADDRESS.equals(element.getType())) {
                address = (org.apache.wsdl.extensions.SOAPAddress) element;
            }
        }

        Text text = doc.createTextNode((address != null)
View Full Code Here

                    ? null
                    : bindingOperation.getOutput().getExtensibilityElements().iterator();
        }

        while ((extIterator != null) && extIterator.hasNext()) {
            WSDLExtensibilityElement element = (WSDLExtensibilityElement) extIterator.next();

            if (ExtensionConstants.SOAP_11_HEADER.equals(element.getType())) {
                SOAPHeader header = (SOAPHeader) element;

                soapHeaderParameterQNameList.add(header.getElement());
            }
        }
View Full Code Here

        if ((extensibilityElements != null) && !extensibilityElements.isEmpty()) {
            Iterator extIterator = extensibilityElements.iterator();

            while (extIterator.hasNext()) {
                WSDLExtensibilityElement element = (WSDLExtensibilityElement) extIterator.next();

                if (ExtensionConstants.SOAP_11_OPERATION.equals(element.getType())
                        || ExtensionConstants.SOAP_12_OPERATION.equals(element.getType())) {
                    addAttribute(doc, "soapaction", ((SOAPOperation) element).getSoapAction(), rootElement);
                    actionAdded = true;
                }
            }
        }
View Full Code Here

        // loop through the extensibility elements to get to the bindings element
        List extensibilityElementsList = binding.getExtensibilityElements();
        int count = extensibilityElementsList.size();

        for (int i = 0; i < count; i++) {
            WSDLExtensibilityElement extElement = (WSDLExtensibilityElement) extensibilityElementsList.get(i);

            if (ExtensionConstants.SOAP_11_BINDING.equals(extElement.getType())) {
                addAttribute(doc, "soap-version", "1.1", rootElement);

                break;
            } else if (ExtensionConstants.SOAP_12_BINDING.equals(extElement.getType())) {
                addAttribute(doc, "soap-version", "1.2", rootElement);

                break;
            }
        }
View Full Code Here

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

            List typesArray = typesList.getExtensibilityElements();
            WSDLExtensibilityElement extensiblityElt;
            Vector xmlSchemaTypeVector = new Vector();
            XmlSchemaCollection schemaColl = new XmlSchemaCollection();
            for (int i = 0; i < typesArray.size(); i++) {
                extensiblityElt = (WSDLExtensibilityElement) typesArray.get(i);

                //add the namespace map here. it is absolutely needed
                Map nsMap = configuration.getWom().getNamespaces();
                Iterator keys = nsMap.keySet().iterator();
                String key;
                while (keys.hasNext()) {
                    key = (String) keys.next();
                    schemaColl.mapNamespace(key, (String) nsMap.get(key));
                }
                Schema schema;

                if (ExtensionConstants.SCHEMA.equals(extensiblityElt.getType())) {
                    schema = (Schema) extensiblityElt;
                    Stack importedSchemaStack = schema.getImportedSchemaStack();
                    //compile these schemas
                    while (!importedSchemaStack.isEmpty()) {
                        Element el = (Element) importedSchemaStack.pop();
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

        int count = 0;
        while(operationKeySetIterator.hasNext()){
            WSDLBindingOperation bindingOperation = (WSDLBindingOperation)bindingOperations.get(operationKeySetIterator.next());
            Iterator extIterator = bindingOperation.getExtensibilityElements().iterator();
            while(extIterator.hasNext()){
              WSDLExtensibilityElement element = (WSDLExtensibilityElement)extIterator.next();
                if(element.getType().equals(ExtensionConstants.SOAP_OPERATION)){
                    if(((SOAPOperation)element).getSoapAction().equals(soapAction)){
                        operation = (OperationDescription)bindingOperation.getOperation();
                        count++;
                    }
                }
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.