Examples of UnknownExtensionElement


Examples of org.apache.woden.wsdl20.extensions.UnknownExtensionElement

        Description descComp = reader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a WSDL description.", descComp);
        DescriptionElement desc = descComp.toElement();
       
        DocumentationElement doc = null;
        UnknownExtensionElement ee = null;
       
        //wsdl:description
        doc = desc.getDocumentationElements()[0];
        ee = (UnknownExtensionElement)doc.getExtensionElements()[0];
        assertNull(ee.getElement().getNamespaceURI());
       
        //wsdl:types
        doc=desc.getTypesElement().getDocumentationElements()[0];
        ee = (UnknownExtensionElement)doc.getExtensionElements()[0];
        assertNull(ee.getElement().getNamespaceURI());
       
        //wsdl:interface
        doc=desc.getInterfaceElements()[0].getDocumentationElements()[0];
        ee = (UnknownExtensionElement)doc.getExtensionElements()[0];
        assertNull(ee.getElement().getNamespaceURI());
       
        //wsdl:binding
        doc=desc.getBindingElements()[0].getDocumentationElements()[0];
        ee = (UnknownExtensionElement)doc.getExtensionElements()[0];
        assertNull(ee.getElement().getNamespaceURI());
       
        //wsdl:service
        doc=desc.getServiceElements()[0].getDocumentationElements()[0];
        ee = (UnknownExtensionElement)doc.getExtensionElements()[0];
        assertNull(ee.getElement().getNamespaceURI());
    }
View Full Code Here

Examples of org.apache.woden.wsdl20.extensions.UnknownExtensionElement

                                        String originOfExtensibilityElements) {
        for (int i = 0; i < extensionElement.length; i++) {
            ExtensionElement element = extensionElement[i];

            if (element instanceof UnknownExtensionElement) {
                UnknownExtensionElement unknown = (UnknownExtensionElement) element;

                // look for the SOAP 1.2 stuff here. WSDL4j does not understand
                // SOAP 1.2 things
                // TODO this is wrong. Compare this with WSDL 2.0 QName
                if (WSDLConstants.WSDL11Constants.SOAP_12_OPERATION.equals(unknown
                        .getExtensionType())) {
                    Element unknownElement = unknown.getElement();
                    if (description instanceof AxisOperation) {
                        AxisOperation axisOperation = (AxisOperation) description;
                        String style = unknownElement.getAttribute("style");
                        if (style != null) {
                            axisOperation.setStyle(style);
                        }
                        axisOperation.setSoapAction(unknownElement
                                .getAttribute("soapAction"));
                    }
                } else if (WSDLConstants.WSDL11Constants.SOAP_12_HEADER.equals(unknown
                        .getExtensionType())) {
                    // TODO : implement thid
                } else if (WSDLConstants.WSDL11Constants.SOAP_12_BINDING.equals(unknown
                        .getExtensionType())) {
                    style = unknown.getElement().getAttribute("style");
                    axisService.setSoapNsUri(element.getExtensionType()
                            .getNamespaceURI());
                } else if (WSDLConstants.WSDL11Constants.SOAP_12_ADDRESS.equals(unknown
                        .getExtensionType())) {
                    axisService.setEndpoint(unknown.getElement().getAttribute(
                            "location"));
                } else if (WSDLConstants.WSDL11Constants.POLICY.equals(unknown
                        .getExtensionType())) {
                    // TODO


                } else if (WSDLConstants.WSDL11Constants.POLICY_REFERENCE.equals(unknown
                        .getExtensionType())) {
                    // TODO

                   
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.