Package xsul5.wsdl

Examples of xsul5.wsdl.WsdlDefinitions


            String targetNSName = TARGET_NS_NAME_PREFIX + this.graph.getID() + "/";
            this.targetNamespace = XmlConstants.BUILDER.newNamespace(WSConstants.TARGET_NS_PREFIX, targetNSName);
            String typesNSName = targetNSName + "xsd/";
            this.typesNamespace = XmlConstants.BUILDER.newNamespace(WSConstants.TYPE_NS_PREFIX, typesNSName);

            this.definitions = new WsdlDefinitions(targetNSName);
            this.definitions.xml().setAttributeValue(WSConstants.NAME_ATTRIBUTE, this.graph.getID());

            this.definitions.xml().declareNamespace(this.targetNamespace);
            this.definitions.xml().declareNamespace(this.typesNamespace);
            this.definitions.xml().declareNamespace(WSConstants.XSD_NS);
View Full Code Here


        //
        // type
        //
        QName type = port.getType();
        WSComponentPort componentPort = port.getWSComponentPort();
        WsdlDefinitions wsdl = null;
        if (componentPort != null) {
            wsdl = componentPort.getComponent().getWSDL();
            type = declareTypeIfNecessary(wsdl, type);
        }
        int arrayDimension = port.getArrayDimension();
View Full Code Here

   */
    private void addImports(GpelProcess process, WsdlDefinitions workflowWSDL, Map<String, WsdlDefinitions> wsdls) {
        Iterator<String> iterator = wsdls.keySet().iterator();
        while (iterator.hasNext()) {
            String id = iterator.next();
            WsdlDefinitions wsdl = wsdls.get(id);
            XmlElement importElement = process.xml().newElement(process.xml().getNamespace(), "import");
            importElement.setAttributeValue("importType", "http://schemas.xmlsoap.org/wsdl/");
            importElement.setAttributeValue("location", wsdl.xml().attributeValue("name") + ".wsdl");
            importElement.setAttributeValue("namespace", wsdl.getTargetNamespace());
            process.xml().addChild(0, importElement);

        }

        XmlElement importElement = process.xml().newElement(process.xml().getNamespace(), "import");
View Full Code Here

                if (isInvoke(next)) {
                    Iterator<String> keys = wsdls.keySet().iterator();

                    while (keys.hasNext()) {
                        String key = keys.next();
                        WsdlDefinitions wsdl = wsdls.get(key);
                        WsdlPortType portType = wsdl.getPortType(portTypeName);
                        if (null != portType) {
                            WsdlPortTypeOperation wsdlOperation = portType.getOperation(operation);
                            WsdlMessagePart part = wsdl
                                    .getMessage(wsdlOperation.getInput().getMessage().getLocalPart()).parts()
                                    .iterator().next();
                            XmlElement childElement = container.addElement(part.getElement().getLocalPart());
                            Iterator<GpelAssignCopy> copyItr = assign.copyOperations().iterator();
                            while (copyItr.hasNext()) {
View Full Code Here

     * @throws UtilsException
     */
    public static WsdlDefinitions stringToWSDL(String wsdlString) throws UtilsException {
        try {
            XmlElement wsdlElement = XMLUtil.stringToXmlElement(wsdlString);
            WsdlDefinitions definitions = new WsdlDefinitions(wsdlElement);
            return definitions;
        } catch (RuntimeException e) {
            throw new UtilsException(e);
        }
    }
View Full Code Here

    /**
     * @param definitions
     * @return The cloned WsdlDefinitions
     */
    public static WsdlDefinitions deepClone(WsdlDefinitions definitions) throws UtilsException {
        return new WsdlDefinitions(XMLUtil.deepClone(definitions.xml()));
    }
View Full Code Here

     * @param event
     *            The notification to show
     */
    public void show() {

        WsdlDefinitions wsdl = this.node.getComponent().getWSDL();
        String type;
        if (WSDLUtil.isAWSDL(wsdl)) {
            type = "Abstract WSDL";
        } else {
            type = "Concrete WSDL";
        }

        this.nameTextField.setText(this.node.getName());
        this.idTextField.setText(this.node.getID());
        this.typeTextField.setText(type);
        // wsdl.toStringPretty uses tab, which doesn't look good in the editor
        // pane.
        this.wsdlTextArea.setText(XMLUtil.BUILDER.serializeToStringPretty(wsdl
                .xml()));

        this.dialog.show();
    }
View Full Code Here

        // Create the invoker
        LEADWorkflowInvoker invoker = null;
        try {

            WsdlDefinitions wsdl = workflow.getOdeInvokableWSDL(configuration.getDSCURL(), configuration.getODEURL());

            LeadContextHeader leadContext = XBayaUtil.buildLeadContextHeader(this.engine, monitorConfiguration,
                    StringUtil.convertToJavaIdentifier(engine.getGUI().getWorkflow().getName()), resourceMapping);
            // /////////////////////////////////////
            leadContext.setExperimentId(monitorConfiguration.getTopic());
View Full Code Here

     * @throws UtilsException
     */
    public static WsdlDefinitions stringToWSDL(String wsdlString) throws UtilsException {
        try {
            XmlElement wsdlElement = XMLUtil.stringToXmlElement(wsdlString);
            WsdlDefinitions definitions = new WsdlDefinitions(wsdlElement);
            return definitions;
        } catch (RuntimeException e) {
            throw new UtilsException(e);
        }
    }
View Full Code Here

    /**
     * @param definitions
     * @return The cloned WsdlDefinitions
     */
    public static WsdlDefinitions deepClone(WsdlDefinitions definitions) throws UtilsException {
        return new WsdlDefinitions(XMLUtil.deepClone(definitions.xml()));
    }
View Full Code Here

TOP

Related Classes of xsul5.wsdl.WsdlDefinitions

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.