Package org.apache.wsdl

Examples of org.apache.wsdl.WSDLBindingOperation


                .getBindingOperations();
        Iterator operationKeySetIterator = bindingOperations.keySet().iterator();
        OperationDescription operation = null;
        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 (ExtensionConstants.SOAP_11_OPERATION.equals(element.getType())||
                        ExtensionConstants.SOAP_12_OPERATION.equals(element.getType())) {
                    if (((SOAPOperation) element).getSoapAction().equals(
                            soapAction)) {
                        WSDLOperation op = bindingOperation.getOperation();
                        if (op instanceof OperationDescription) {
                            operation = (OperationDescription) op;
                            count++;
                        }
                    }
View Full Code Here


        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);
        }

        // wsdl:portType/wsdl:operation
        WSDLOperation wsdlOperation = bindingOperation.getOperation();
        Assertion interfacePolicy = getPolicyFromComponent(wsdlOperation);

        if (interfacePolicy != null) {
            list.add(interfacePolicy);
View Full Code Here

    public Policy getInputMeassagePolicy(QName eqname, QName oqname) {
        List policies = new ArrayList();
        WSDLEndpoint endPoint = getEndpoint(eqname);

        // wsdl:binding/wsdl:operation/wsdl:input
        WSDLBindingOperation wsdlBindingOperation = endPoint.getBinding()
                .getBindingOperation(oqname);
        WSDLBindingMessageReference bindingInput = wsdlBindingOperation
                .getInput();

        //List extensibilityAttributes =
        // bindingInput.getExtensibilityAttributes();
        Policy bindingInputPolicy = getSinglePolicy(getPoliciesAsExtensibleElements(bindingInput));
        if (bindingInputPolicy != null) {
            policies.add(bindingInputPolicy);
        }

        // wsdl:portType/wsdl:operation/wsdl:input
        WSDLOperation wsdlOperation = wsdlBindingOperation.getOperation();
        MessageReference operationInput = wsdlOperation.getInputMessage();
        Policy operationInputPolicy = getSinglePolicy(getPoliciesAsExtensibilityAttribute(operationInput));
        if (operationInputPolicy != null) {
            policies.add(operationInputPolicy);
        }
View Full Code Here

    public Policy getOutputMeassagePolicy(QName endPointName, QName opName) {
        List policies = new ArrayList();
        WSDLEndpoint endPoint = getEndpoint(endPointName);

        // wsdl:binding/wsdl:operation/wsdl:output
        WSDLBindingOperation wsdlBindingOperation = endPoint.getBinding()
                .getBindingOperation(opName);
        WSDLBindingMessageReference bindingOutput = wsdlBindingOperation
                .getOutput();
        Policy bindingOutputPolicy = getSinglePolicy(getPoliciesAsExtensibleElements(bindingOutput));
        if (bindingOutputPolicy != null) {
            policies.add(getPolicyFromComponent(bindingOutput));
        }

        // wsdl:portType/wsdl:operation/wsdl:output
        WSDLOperation wsdlOperation = wsdlBindingOperation.getOperation();
        MessageReference operationOutput = wsdlOperation.getOutputMessage();
        Policy operationOutputPolicy = getSinglePolicy(getPoliciesAsExtensibilityAttribute(operationOutput));
        if (operationOutputPolicy != null) {
            policies.add(operationOutputPolicy);
        }
View Full Code Here

        registerPoliciesAsElements(extensibilityElements);

        Iterator iterator = wsdlBinding.getBindingOperations().values()
                .iterator();
        while (iterator.hasNext()) {
            WSDLBindingOperation wsdlBindingOperation = (WSDLBindingOperation) iterator
                    .next();
            registerPoliciesInBindOperation(wsdlBindingOperation);
        }
    }
View Full Code Here

        Map bindingOperationsMap = binding.getBindingOperations();
        Map parameterMap = new HashMap();
        Iterator operationsIterator = bindingOperationsMap.values().iterator();

        while (operationsIterator.hasNext()) {
            WSDLBindingOperation bindingOperation = (WSDLBindingOperation) operationsIterator.next();

            // Add the parameters to a map with their type as the key
            // this step is needed to remove repetitions

            // process the input and output parameters
            Element inputParamElement = getInputParamElement(doc, bindingOperation.getOperation());

            if (inputParamElement != null) {
                parameterMap.put(inputParamElement.getAttribute("type"), inputParamElement);
            }

            Element outputParamElement = getOutputParamElement(doc, bindingOperation.getOperation());

            if (outputParamElement != null) {
                parameterMap.put(outputParamElement.getAttribute("type"), outputParamElement);
            }
View Full Code Here

                        methodElement);

                addAttribute(doc, "mep", operation.getMessageExchangePattern(), methodElement);

                if (null != binding) {
                    WSDLBindingOperation bindingOperation = binding.getBindingOperation(operation.getName());

                    // todo This can be a prob !!!!!
                    if (bindingOperation != null) {
                        addSOAPAction(doc, methodElement, bindingOperation);
                        addHeaderOperations(soapHeaderInputParameterList, bindingOperation, true);
                        addHeaderOperations(soapHeaderOutputParameterList, bindingOperation, false);
                    }
                }

                /*
                 * Setting the policy of the operation
                 */
                WSDLEndpoint endpoint = infoHolder.getPort();

                if (endpoint != null) {
                  Policy policy = attachmentUtil.getOperationPolicy(endpoint.getName(), operation.getName());

                  if (policy != null) {
                    addAttribute(doc, "policy", PolicyUtil.getPolicyAsString(policy), methodElement);
                  }
                }


                methodElement.appendChild(getInputElement(doc, operation, soapHeaderInputParameterList));
                methodElement.appendChild(getOutputElement(doc, operation, soapHeaderOutputParameterList));
                rootElement.appendChild(methodElement);
                //////////////////////
            }else{
                //mep is present - we move ahead only if the given mep matches the mep of this operation

                if (mep.equals(operation.getMessageExchangePattern())){
                    //at this point we know it's true
                    opsFound = true;
                    List soapHeaderInputParameterList = new ArrayList();
                    List soapHeaderOutputParameterList = new ArrayList();
                    methodElement = doc.createElement("method");
                    String localPart = operation.getName().getLocalPart();

                    addAttribute(doc, "name", localPart, methodElement);
                    addAttribute(doc, "namespace", operation.getName().getNamespaceURI(), methodElement);
                    addAttribute(doc, "style", operation.getStyle(), methodElement);
                    addAttribute(doc, "dbsupportname", portTypeName + localPart + DATABINDING_SUPPORTER_NAME_SUFFIX,
                            methodElement);

                    addAttribute(doc, "mep", operation.getMessageExchangePattern(), methodElement);

                    if (null != binding) {
                        WSDLBindingOperation bindingOperation = binding.getBindingOperation(operation.getName());

                        // todo This can be a prob !!!!!
                        if (bindingOperation != null) {
                            addSOAPAction(doc, methodElement, bindingOperation);
                            addHeaderOperations(soapHeaderInputParameterList, bindingOperation, true);
View Full Code Here

        Map bindingOperationsMap = binding.getBindingOperations();
        Map parameterMap = new HashMap();
        Iterator operationsIterator = bindingOperationsMap.values().iterator();

        while (operationsIterator.hasNext()) {
            WSDLBindingOperation bindingOperation = (WSDLBindingOperation) operationsIterator.next();

            // Add the parameters to a map with their type as the key
            // this step is needed to remove repetitions

            // process the input and output parameters
            Element inputParamElement = getInputParamElement(doc, bindingOperation.getOperation());

            if (inputParamElement != null) {
                parameterMap.put(inputParamElement.getAttribute("type"), inputParamElement);
            }

            Element outputParamElement = getOutputParamElement(doc, bindingOperation.getOperation());

            if (outputParamElement != null) {
                parameterMap.put(outputParamElement.getAttribute("type"), outputParamElement);
            }
View Full Code Here

            addAttribute(doc, "dbsupportname", portTypeName + localPart + DATABINDING_SUPPORTER_NAME_SUFFIX,
                    methodElement);
            addAttribute(doc, "mep", operation.getMessageExchangePattern(), methodElement);

            if (null != binding) {
                WSDLBindingOperation bindingOperation = binding.getBindingOperation(operation.getName());

                // todo This can be a prob !!!!!
                if (bindingOperation != null) {
                    addSOAPAction(doc, methodElement, bindingOperation);
                    addHeaderOperations(soapHeaderInputParameterList, bindingOperation, true);
View Full Code Here

        HashMap bindingOperations = this.getEndpoint(endpoint).getBinding().getBindingOperations();
        Iterator operationKeySetIterator = bindingOperations.keySet().iterator();
        OperationDescription operation = null;
        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.WSDLBindingOperation

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.