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

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


        if (getList() != null && getList().size() > 0) {
            List<Mediator> list = getList();
            SequenceMediator seq = new SequenceMediator();
            seq.setAnonymous(true);
            for (Mediator m : list) {
                seq.addChild(m);
            }
            seq.serialize(targetElem);
        }

        if (endpoint != null && endpointRef == null) {
View Full Code Here


            OMNode wsdlDocChild = wsdlDocElement.getFirstOMChild();
            if (wsdlDocChild instanceof OMText) {
                String documentationText = ((OMText)wsdlDocChild).getText();
                if (documentationText != null) {
                    documentationText = documentationText.replace('\n', ' ').trim();
                    root.addChild(new TreeNode(WSDLConstants.WSDL_DOCUMENTATION, documentationText));
                }
            }
        }

        // adding the version
View Full Code Here

            }
        }

        // adding the version
        String wsdlVersion = getWSDLVersion(wsdlElement);
        root.addChild(new TreeNode(WSDLConstants.WSDL_VERSION, wsdlVersion));

        if (wsdlVersion.equals(WSDLConstants.WSDL_VERSION_VALUE_11)) {
            buildWSDL11Services(root);

            // adding the schema imports
View Full Code Here

                        wsdImportAbsolutePath = TreeNodeBuilderUtil.calculateAbsolutePath(wsdlPath, wsdlImport);
                    }
                    String wsdlImportEntry = "<a href='" + WSDLConstants.RESOURCE_JSP_PAGE + "?" +
                            WSDLConstants.PATH_REQ_PARAMETER + "=" +
                            wsdImportAbsolutePath + "'>" + wsdlImport + "</a>";
                    wsdlImportNode.addChild(wsdlImportEntry);
                }
            }     
        } else {
            String msg = "Unknown WSDL Version.";
            throw new Exception(msg);           
View Full Code Here

                    schemaImportAbsolutePath = TreeNodeBuilderUtil.calculateAbsolutePath(wsdlPath, schemaImport);
                }
                String schemaImportEntry = "<a href='" + WSDLConstants.RESOURCE_JSP_PAGE + "?" +
                        WSDLConstants.PATH_REQ_PARAMETER + "=" +
                        schemaImportAbsolutePath + "'>" + schemaImport + "</a>";
                schemaImportsNode.addChild(schemaImportEntry);
            }
        }
       

        return root;
View Full Code Here

                OMElement bindingProtocolElement = TreeNodeBuilderUtil.evaluateXPathToElement(WSDLConstants.SOAP_BINDING_EXPR, bindingElement);

                if (bindingProtocolElement != null) {
                    // so it is soap 1.1
                    String endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.SOAP_11_ENDPOINT_EXPR, portElement);
                    portNode.addChild(new TreeNode(WSDLConstants.SOAP_11_ENDPOINT, endpoint));
                    portNode.addChild(new TreeNode(WSDLConstants.SOAP_VERSION, WSDLConstants.SOAP_11));
                } else {
                    bindingProtocolElement = TreeNodeBuilderUtil.evaluateXPathToElement(WSDLConstants.SOAP12_BINDING_EXPR, bindingElement);
                    if (bindingProtocolElement != null) {
                        // it is soap 1.2
View Full Code Here

                if (bindingProtocolElement != null) {
                    // so it is soap 1.1
                    String endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.SOAP_11_ENDPOINT_EXPR, portElement);
                    portNode.addChild(new TreeNode(WSDLConstants.SOAP_11_ENDPOINT, endpoint));
                    portNode.addChild(new TreeNode(WSDLConstants.SOAP_VERSION, WSDLConstants.SOAP_11));
                } else {
                    bindingProtocolElement = TreeNodeBuilderUtil.evaluateXPathToElement(WSDLConstants.SOAP12_BINDING_EXPR, bindingElement);
                    if (bindingProtocolElement != null) {
                        // it is soap 1.2
                        String endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.SOAP_12_ENDPOINT_EXPR, portElement);
View Full Code Here

                } else {
                    bindingProtocolElement = TreeNodeBuilderUtil.evaluateXPathToElement(WSDLConstants.SOAP12_BINDING_EXPR, bindingElement);
                    if (bindingProtocolElement != null) {
                        // it is soap 1.2
                        String endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.SOAP_12_ENDPOINT_EXPR, portElement);
                        portNode.addChild(new TreeNode(WSDLConstants.SOAP_12_ENDPOINT, endpoint));
                        portNode.addChild(new TreeNode(WSDLConstants.SOAP_VERSION, WSDLConstants.SOAP_12));
                    }
                }

                if (bindingProtocolElement != null) {
View Full Code Here

                    bindingProtocolElement = TreeNodeBuilderUtil.evaluateXPathToElement(WSDLConstants.SOAP12_BINDING_EXPR, bindingElement);
                    if (bindingProtocolElement != null) {
                        // it is soap 1.2
                        String endpoint = TreeNodeBuilderUtil.evaluateXPathToValue(WSDLConstants.SOAP_12_ENDPOINT_EXPR, portElement);
                        portNode.addChild(new TreeNode(WSDLConstants.SOAP_12_ENDPOINT, endpoint));
                        portNode.addChild(new TreeNode(WSDLConstants.SOAP_VERSION, WSDLConstants.SOAP_12));
                    }
                }

                if (bindingProtocolElement != null) {
                    // We found this is SOAP (either 1.1. or 1.2), now we will get the transport and style info
View Full Code Here

                }

                if (bindingProtocolElement != null) {
                    // We found this is SOAP (either 1.1. or 1.2), now we will get the transport and style info
                    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));
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.