Package edu.indiana.extreme.xbaya.component.ws

Examples of edu.indiana.extreme.xbaya.component.ws.WSComponent


   */
  public List<WSComponentPort> getInputs() throws ComponentException {
    if (this.workflowWSDL == null) {
      throw new IllegalStateException();
    }
    WSComponent component = WSComponentFactory
        .createComponent(this.workflowWSDL);
    return component.getInputPorts();
  }
View Full Code Here


   */
  public List<WSComponentPort> getOutputs() throws ComponentException {
    if (this.workflowWSDL == null) {
      throw new IllegalStateException();
    }
    WSComponent component = WSComponentFactory
        .createComponent(this.workflowWSDL);
    return component.getOutputPorts();
  }
View Full Code Here

        // 2.2.6_1 or below.
        operation = WSDLUtil.getFirstOperationName(wsdl, portType);
      }
      WSComponentKey key = new WSComponentKey(id, portType, operation);

      WSComponent component;
      if (components.containsKey(key)) {
        component = components.get(key);
      } else {
        component = WSComponentFactory.createComponent(wsdl, portType,
            operation);
View Full Code Here

    public Collection<XmlElement> getWSDLs() {
        Collection<XmlElement> wsdls = new ArrayList<XmlElement>();
        for (Node node : this.graph.getNodes()) {
            if (node instanceof WSNode) {
                WSNode wsNode = (WSNode) node;
                WSComponent component = wsNode.getComponent();
                wsdls.add(component.toXML());
            }
        }
        return wsdls;
    }
View Full Code Here

 
  private void addInvoke(WSNode node, GpelSequence sequence)
            throws GraphException {
        String id = node.getID();

        WSComponent wsdlComponent = node.getComponent();
        String operation = wsdlComponent.getOperationName();

        QName portTypeQName = wsdlComponent.getPortTypeQName();
        XmlNamespace namespace = XMLUtil.declareNamespaceIfNecessary(id
                .toLowerCase(), portTypeQName.getNamespaceURI(), false,
                this.process.xml());

        // Variable
View Full Code Here

                    .newFragment(GpelAssignCopyFrom.LITERAL_EL);
            literalElement.addChild(value);
            from.setLiteral(literalElement);
        } else if (fromNode instanceof WSNode) {
            String fromID = fromNode.getID();
            WSComponent fromWsdlComponent = (WSComponent) fromNode
                    .getComponent();

            WSComponentPort fromWsdlPort = (WSComponentPort) fromPort
                    .getComponentPort();

            from.setVariable(fromID + OUTPUT_SUFFIX);
            from.setPart(fromWsdlComponent.getOutputPartName());

            if (fromWsdlPort.isSchemaUsed()) {
                String typesTargetNamespace = fromWsdlPort.getTargetNamespace();
                XmlNamespace namespace = XMLUtil.declareNamespaceIfNecessary(
                        fromID.toLowerCase() + TYPENS_SUFFIX,
                        typesTargetNamespace, false, this.process.xml());

                from.setQuery("/" + namespace.getPrefix() + ":"
                        + fromWsdlComponent.getOutputTypeName() + "/"
                        + fromWsdlPort.getName());
            } else {
                // No query needed?
            }
        } else if (fromNode instanceof ForEachNode) {
View Full Code Here

        } else {
            WSComponentPort toComponentPort = (WSComponentPort) toPort
                    .getComponentPort();

            String toID = toNode.getID();
            WSComponent toWSComponent = (WSComponent) toNode.getComponent();
            to.setVariable(toID + INPUT_SUFFIX);
            to.setPart(toWSComponent.getInputPartName());

            if (toComponentPort.isSchemaUsed()) {
                // Normal case.
                // e.g. <part name="name" type="typens:fooType">
                String typesTargetNamespace = toComponentPort
                        .getTargetNamespace();
                XmlNamespace namespace = XMLUtil.declareNamespaceIfNecessary(
                        toID.toLowerCase() + TYPENS_SUFFIX,
                        typesTargetNamespace, false, this.process.xml());

                String typeName = input ? toWSComponent.getInputTypeName()
                        : toWSComponent.getOutputTypeName();
                to.setQuery("/" + namespace.getPrefix() + ":" + typeName + "/"
                        + toComponentPort.getName());
            } else {
                // e.g. <part name="name" type="xsd:string">
                // No query is needed?
View Full Code Here

    @Deprecated
    protected void parseComponent(XmlElement componentElement)
            throws GraphException {
        try {
            String componentString = componentElement.requiredText();
            WSComponent wsdlComponent = WSComponentFactory
                    .createComponent(componentString);
            setComponent(wsdlComponent);
        } catch (ComponentException e) {
            throw new GraphException(ErrorMessages.COMPONENT_FORMAT_ERROR, e);
        }
View Full Code Here

     */
    private void writeInvocation(WSNode node, boolean thread, PrintWriter pw) {
        String id = node.getID();
        String wsdlID = getWSDLID(node);

        WSComponent component = node.getComponent();
        QName portTypeQName = component.getPortTypeQName();
        String operation = component.getOperationName();

        pw.println(TAB + "# Invoke " + id + ".");
        pw.println(TAB + id + QNAME_SUFFIX + " = QName('"
                + portTypeQName.getNamespaceURI() + "', '"
                + portTypeQName.getLocalPart() + "')");
View Full Code Here

            arguments.add(notifConfig.getMessageBoxURL().toString());
        }

        try {
            for (WSNode node : GraphUtil.getWSNodes(this.workflow.getGraph())) {
                WSComponent component = node.getComponent();
                QName portTypeQName = component.getPortTypeQName();
                WsdlDefinitions wsdl = component.getWSDL();

                File file = File.createTempFile(".xbaya-"
                        + portTypeQName.getLocalPart(),
                        XBayaConstants.WSDL_SUFFIX);
                this.tmpWSDLFiles.add(file);
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.component.ws.WSComponent

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.