Package org.apache.wsdl

Examples of org.apache.wsdl.WSDLBinding


            //just fall through
        }else{
            Collection bindingCollection = bindingMap.values();
            for (Iterator iterator = bindingCollection.iterator(); iterator.hasNext();) {

                WSDLBinding binding = (WSDLBinding)iterator.next();

                WSDLBinding newBinding = wom.createBinding();
                newBinding.setName(AXIS_BINDING_QNAME);

                WSDLInterface boundInterface = binding.getBoundInterface();
                newBinding.setBoundInterface(boundInterface);

                newBinding.setBindingFaults(binding.getBindingFaults());
                newBinding.setBindingOperations(binding.getBindingOperations());
                Iterator elementIterator = binding.getExtensibilityElements().iterator();
                while (elementIterator.hasNext()) {
                    newBinding.addExtensibilityElement(
                            (WSDLExtensibilityElement) elementIterator.next());
                }

                Iterator attributeIterator = binding.getExtensibilityAttributes()
                        .iterator();
                while (attributeIterator.hasNext()) {
                    newBinding.addExtensibleAttributes(
                            (WSDLExtensibilityAttribute) attributeIterator.next());
                }
                bindingVector.add(newBinding);

            }
View Full Code Here


        if (epPolicy != null) {
            policies.add(getPolicyFromComponent(endpoint));
        }

        //wsdl:binding
        WSDLBinding wsdlBinding = endpoint.getBinding();
        Assertion wsdlBindingPolicy = getPolicyFromComponent(wsdlBinding);
        if (wsdlBindingPolicy != null) {
            policies.add(getPolicyFromComponent(wsdlBinding));
        }

        //wsdl:portType
        WSDLInterface wsdlInterface = wsdlBinding.getBoundInterface();
        Assertion portTypePolicy = getPolicyFromComponent(wsdlInterface);
        if (portTypePolicy != null) {
            policies.add(getPolicyFromComponent(wsdlInterface));
        }
View Full Code Here

    public Policy getOperationPolicy(QName eqame, QName oqname) {
        WSDLEndpoint endPoint = getEndpoint(eqame);
        ArrayList list = new ArrayList();

        //wsdl:binding/wsdl:operation
        WSDLBinding binding = endPoint.getBinding();
        WSDLBindingOperation bindingOperation = (WSDLBindingOperation) binding
                .getBindingOperations().get(oqname);

        Assertion bindingPolicy = getPolicyFromComponent(bindingOperation);
        if (bindingPolicy != null) {
            list.add(bindingPolicy);
View Full Code Here

            registerPoliciesInWSDLInterface(interfaze);
        }

        iterator = des.getBindings().values().iterator();
        while (iterator.hasNext()) {
            WSDLBinding wsdlBinding = (WSDLBinding) iterator.next();
            registerPoliciesInWSDLBinding(wsdlBinding);
        }

        iterator = des.getServices().values().iterator();
        while (iterator.hasNext()) {
View Full Code Here

            //just fall through
        } else {
            Collection bindingCollection = bindingMap.values();
            for (Iterator iterator = bindingCollection.iterator(); iterator.hasNext();) {

                WSDLBinding binding = (WSDLBinding) iterator.next();

                WSDLBinding newBinding = wom.createBinding();
                newBinding.setName(AXIS_BINDING_QNAME);

                WSDLInterface boundInterface = binding.getBoundInterface();
                newBinding.setBoundInterface(boundInterface);

                newBinding.setBindingFaults(binding.getBindingFaults());
                newBinding.setBindingOperations(binding.getBindingOperations());
                Iterator elementIterator = binding.getExtensibilityElements().iterator();
                while (elementIterator.hasNext()) {
                    newBinding.addExtensibilityElement(
                            (WSDLExtensibilityElement) elementIterator.next());
                }

                Iterator attributeIterator = binding.getExtensibilityAttributes()
                        .iterator();
                while (attributeIterator.hasNext()) {
                    newBinding.addExtensibleAttributes(
                            (WSDLExtensibilityAttribute) attributeIterator.next());
                }
                bindingVector.add(newBinding);

            }
View Full Code Here

     * Generates the model for the callbacks.
     */
    protected Document createDOMDocumentForCallbackHandler() {
        Document doc = getEmptyDocument();
        WSDLInterface boundInterface = infoHolder.getWSDLinterface();
        WSDLBinding axisBinding = infoHolder.getBinding();
        Element rootElement = doc.createElement("callback");

        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
        addAttribute(doc, "name", getCoreClassName(boundInterface) + CALL_BACK_HANDLER_SUFFIX, rootElement);
        addAttribute(doc, "namespace", boundInterface.getName().getNamespaceURI(), rootElement);
View Full Code Here

     * Creates the DOM tree for the interface creation. Uses the interface.
     */
    protected Document createDOMDocumentForInterface(boolean writeDatabinders) {
        Document doc = getEmptyDocument();
        WSDLInterface wsdlInterface = infoHolder.getWSDLinterface();
        WSDLBinding axisBinding = infoHolder.getBinding();
        Element rootElement = doc.createElement("interface");
        String localPart = getCoreClassName(wsdlInterface);

        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
        addAttribute(doc, "name", localPart, rootElement);
View Full Code Here

     * Creates the DOM tree for implementations.
     */
    protected Document createDOMDocumentForInterfaceImplementation() throws Exception {

        WSDLInterface boundInterface = infoHolder.getWSDLinterface();
        WSDLBinding binding = infoHolder.getBinding();
        String packageName = configuration.getPackageName();
        String localPart = getCoreClassName(boundInterface);
        String stubName = localPart + STUB_SUFFIX;
        Document doc = getEmptyDocument();
        Element rootElement = doc.createElement("class");
View Full Code Here

        return doc;
    }

    protected Document createDOMDocumentForServiceXML() {
        WSDLInterface boundInterface = infoHolder.getWSDLinterface();
        WSDLBinding axisBinding = infoHolder.getBinding();
        WSDLService service = infoHolder.getService();
        Document doc = getEmptyDocument();
        String coreClassName = getCoreClassName(boundInterface);

        // WSDLEndpoint endpoint = infoHolder.getPort();
View Full Code Here

     */
    protected Document createDOMDocumentForSkeleton() {
        Document doc = getEmptyDocument();
        Element rootElement = doc.createElement("interface");
        WSDLInterface boundInterface = infoHolder.getWSDLinterface();
        WSDLBinding axisBinding = infoHolder.getBinding();

        // name the skeleton after the binding's name !
        String localpart = getCoreClassName(boundInterface);

        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
View Full Code Here

TOP

Related Classes of org.apache.wsdl.WSDLBinding

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.