Package org.wso2.carbon.mediator.service.builtin

Examples of org.wso2.carbon.mediator.service.builtin.SequenceMediator.addChild()


                    String style = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.BINDING_STYLE_EXPR, bindingProtocolElement);
                    portNode.addChild(new TreeNode(WSDLConstants.BINDING_STYLE, style));

                    String transport = bindingProtocolElement.getAttributeValue(new QName(WSDLConstants.BINDING_TRANSPORT_ATTRIBUTE));
                    if (transport.equals(WSDLConstants.HTTP_TRANSPORT_ATTRIBUTE_VALUE)) {
                        portNode.addChild(new TreeNode(WSDLConstants.BINDING_TRANSPORT,
                                WSDLConstants.HTTP_TRANSPORT_VALUE));
                    } else {
                        portNode.addChild(new TreeNode(WSDLConstants.BINDING_TRANSPORT,
                                WSDLConstants.NON_HTTP_TRANSPORT_VALUE));
                    }
View Full Code Here


                    String transport = bindingProtocolElement.getAttributeValue(new QName(WSDLConstants.BINDING_TRANSPORT_ATTRIBUTE));
                    if (transport.equals(WSDLConstants.HTTP_TRANSPORT_ATTRIBUTE_VALUE)) {
                        portNode.addChild(new TreeNode(WSDLConstants.BINDING_TRANSPORT,
                                WSDLConstants.HTTP_TRANSPORT_VALUE));
                    } else {
                        portNode.addChild(new TreeNode(WSDLConstants.BINDING_TRANSPORT,
                                WSDLConstants.NON_HTTP_TRANSPORT_VALUE));
                    }

                }
View Full Code Here

                if (bindingProtocolElement == null) {
                    // expecting this to be http
                    bindingProtocolElement = TreeNodeBuilderUtil.evaluateXPathToElement(WSDLConstants.HTTP_BINDING_EXPR, bindingElement);
                    if (bindingProtocolElement != null) {
                        String endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.HTTP_ENDPOINT_EXPR, portElement);
                        portNode.addChild(new TreeNode(WSDLConstants.HTTP_ENDPOINT, endpoint));
                        portNode.addChild(new TreeNode(WSDLConstants.HTTP_BINDING, WSDLConstants.HTTP_BINDING_TRUE));

                        String verb = bindingProtocolElement.getAttributeValue(new QName(WSDLConstants.BINDING_VERB_ATTRIBUTE));
                        portNode.addChild(new TreeNode(WSDLConstants.BINDING_VERB, verb));
                    }
View Full Code Here

                    // expecting this to be http
                    bindingProtocolElement = TreeNodeBuilderUtil.evaluateXPathToElement(WSDLConstants.HTTP_BINDING_EXPR, bindingElement);
                    if (bindingProtocolElement != null) {
                        String endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.HTTP_ENDPOINT_EXPR, portElement);
                        portNode.addChild(new TreeNode(WSDLConstants.HTTP_ENDPOINT, endpoint));
                        portNode.addChild(new TreeNode(WSDLConstants.HTTP_BINDING, WSDLConstants.HTTP_BINDING_TRUE));

                        String verb = bindingProtocolElement.getAttributeValue(new QName(WSDLConstants.BINDING_VERB_ATTRIBUTE));
                        portNode.addChild(new TreeNode(WSDLConstants.BINDING_VERB, verb));
                    }
                }
View Full Code Here

                        String endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.HTTP_ENDPOINT_EXPR, portElement);
                        portNode.addChild(new TreeNode(WSDLConstants.HTTP_ENDPOINT, endpoint));
                        portNode.addChild(new TreeNode(WSDLConstants.HTTP_BINDING, WSDLConstants.HTTP_BINDING_TRUE));

                        String verb = bindingProtocolElement.getAttributeValue(new QName(WSDLConstants.BINDING_VERB_ATTRIBUTE));
                        portNode.addChild(new TreeNode(WSDLConstants.BINDING_VERB, verb));
                    }
                }
                // Here we don't create a special node for bindingNode, so bindingNode = portNode
                fillBinding(portNode, bindingElement);
            } else {
View Full Code Here

            } else {
                // even if the binding element is not present, we probably can find the endpoint from the 'address'
                // element
                String endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.SOAP_11_ENDPOINT_EXPR, portElement);
                if (endpoint != null) {
                    portNode.addChild(new TreeNode(WSDLConstants.SOAP_11_ENDPOINT, endpoint));
                    portNode.addChild(new TreeNode(WSDLConstants.SOAP_VERSION, WSDLConstants.SOAP_11));
                } else {
                    endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.SOAP_12_ENDPOINT_EXPR, portElement);
                    if (endpoint != null) {
                        portNode.addChild(new TreeNode(WSDLConstants.SOAP_12_ENDPOINT, endpoint));
View Full Code Here

                // even if the binding element is not present, we probably can find the endpoint from the 'address'
                // element
                String endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.SOAP_11_ENDPOINT_EXPR, portElement);
                if (endpoint != null) {
                    portNode.addChild(new TreeNode(WSDLConstants.SOAP_11_ENDPOINT, endpoint));
                    portNode.addChild(new TreeNode(WSDLConstants.SOAP_VERSION, WSDLConstants.SOAP_11));
                } else {
                    endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.SOAP_12_ENDPOINT_EXPR, portElement);
                    if (endpoint != null) {
                        portNode.addChild(new TreeNode(WSDLConstants.SOAP_12_ENDPOINT, endpoint));
                        portNode.addChild(new TreeNode(WSDLConstants.SOAP_VERSION, WSDLConstants.SOAP_12));
View Full Code Here

                    portNode.addChild(new TreeNode(WSDLConstants.SOAP_11_ENDPOINT, endpoint));
                    portNode.addChild(new TreeNode(WSDLConstants.SOAP_VERSION, WSDLConstants.SOAP_11));
                } else {
                    endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.SOAP_12_ENDPOINT_EXPR, portElement);
                    if (endpoint != null) {
                        portNode.addChild(new TreeNode(WSDLConstants.SOAP_12_ENDPOINT, endpoint));
                        portNode.addChild(new TreeNode(WSDLConstants.SOAP_VERSION, WSDLConstants.SOAP_12));
                    }
                }
                if (endpoint == null) {
                    // then we can assume it is http
View Full Code Here

                    portNode.addChild(new TreeNode(WSDLConstants.SOAP_VERSION, WSDLConstants.SOAP_11));
                } else {
                    endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.SOAP_12_ENDPOINT_EXPR, portElement);
                    if (endpoint != null) {
                        portNode.addChild(new TreeNode(WSDLConstants.SOAP_12_ENDPOINT, endpoint));
                        portNode.addChild(new TreeNode(WSDLConstants.SOAP_VERSION, WSDLConstants.SOAP_12));
                    }
                }
                if (endpoint == null) {
                    // then we can assume it is http
                    endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.HTTP_ENDPOINT_EXPR, portElement);
View Full Code Here

                }
                if (endpoint == null) {
                    // then we can assume it is http
                    endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.HTTP_ENDPOINT_EXPR, portElement);
                    if (endpoint != null) {
                        portNode.addChild(new TreeNode(WSDLConstants.HTTP_ENDPOINT, endpoint));
                        portNode.addChild(new TreeNode(WSDLConstants.HTTP_BINDING, WSDLConstants.HTTP_BINDING_TRUE));
                    }
                }
            }
            portNode.addChild(new TreeNode(WSDLConstants.BINDING, TreeNodeBuilderUtil.convertQNameToString(bindingLocalName,
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.