Package edu.indiana.extreme.xbaya.jython.lib

Examples of edu.indiana.extreme.xbaya.jython.lib.GenericInvoker


     * @throws XBayaException
     */
    public void testService() throws XBayaException {
        NotificationSender notifier = new NotificationSender(this.configuration
                .getBrokerURL(), "test-topic2");
        WorkflowInvoker invoker = new GenericInvoker(QName
                .valueOf(TEST_SERVICE_QNAME), TEST_AWSDL, "test-node", null,
                this.configuration.getGFacURL().toString(), notifier);
        invoker.setup();
        invoker.setOperation("Run");
        invoker.setInput("inparam1", "test");
        invoker.invoke();
        Object output = invoker.getOutput("outparam1");
        logger.info("output: " + output);
    }
View Full Code Here


          }

          invoker = new WorkflowInvokerWrapperForGFacInvoker(portTypeQName, gfacURLString, this.configuration.getMessageBoxURL().toString(), leadCtxHeader, this.notifier.createServiceNotificationSender(node.getID()));
         
        } else {
          invoker = new GenericInvoker(portTypeQName, WSDLUtil.wsdlDefinitions5ToWsdlDefintions3(wsNode.getComponent().getWSDL()), node.getID(), this.configuration.getMessageBoxURL().toString(), gfacURLString, this.notifier, this.configuration, null);
        }

      } else {
        if (!wsdlLocation.endsWith("?wsdl")) {
          wsdlLocation += "?wsdl";
        }
        invoker = new GenericInvoker(portTypeQName, wsdlLocation, node.getID(), this.configuration.getMessageBoxURL().toString(), gfacURLString, this.notifier);
      }
      invoker.setup();
      this.invokerMap.put(node, invoker);
      invoker.setOperation(wsComponent.getOperationName());
    }
View Full Code Here

          // .getID(), gfacURLString, notifier, secureInvoker,
          // leadCtxHeader, wsComponent.getOperationName());
          SecureGFacInvoker secureGFacInvoker = new SecureGFacInvoker(portTypeQName, WSDLUtil.wsdlDefinitions5ToWsdlDefintions3(foreachWSNode.getComponent().getWSDL()), foreachWSNode.getID(), gfacURLString, this.notifier, secureInvoker, leadCtxHeader, wsComponent.getOperationName());
          invoker = secureGFacInvoker;
        } else {
          invoker = new GenericInvoker(portTypeQName, WSDLUtil.wsdlDefinitions5ToWsdlDefintions3(foreachWSNode.getComponent().getWSDL()), foreachWSNode.getID(), this.configuration.getMessageBoxURL().toString(), gfacURLString, this.notifier);
        }

      } else {
        if (!wsdlLocation.endsWith("?wsdl")) {
          wsdlLocation += "?wsdl";
        }
        invoker = new GenericInvoker(portTypeQName, wsdlLocation, foreachWSNode.getID(), this.configuration.getMessageBoxURL().toString(), gfacURLString, this.notifier);
      }
      invoker.setup();
      invoker.setOperation(wsComponent.getOperationName());
      invokerList.add(invoker);
      // find inputs
View Full Code Here

        String adderWSDLLoc = service.getServiceWsdlLocation();

        NotificationSender notifier = new NotificationSender(
                XBayaConstants.DEFAULT_BROKER_URL.toString(), "test-topic");

        WorkflowInvoker invoker = new GenericInvoker(null, adderWSDLLoc,
                "adder", null, null, notifier);
        invoker.setup();
        invoker.setOperation("add");
        invoker.setInput("x", 2);
        invoker.setInput("y", 3);
        invoker.invoke();

        Object output = invoker.getOutput("z");
        logger.info("z = " + output);

        service.shutdownServer();
    }
View Full Code Here

        String multiplierWSDLLoc = multiplier.getServiceWsdlLocation();

        NotificationSender notifier = new NotificationSender(
                XBayaConstants.DEFAULT_BROKER_URL.toString(), "test-topic");

        WorkflowInvoker adderInvoker1 = new GenericInvoker(null, adderWSDLLoc,
                "adder", null, null, notifier);
        adderInvoker1.setup();
        adderInvoker1.setOperation("add");
        adderInvoker1.setInput("x", 2);
        adderInvoker1.setInput("y", 3);
        adderInvoker1.invoke();

        Object output1 = adderInvoker1.getOutput("z");
        logger.info("output1 = " + output1);

        WorkflowInvoker adderInvoker2 = new GenericInvoker(null, adderWSDLLoc,
                "adder", null, null, notifier);
        adderInvoker2.setup();
        adderInvoker2.setOperation("add");
        adderInvoker2.setInput("x", 4);
        adderInvoker2.setInput("y", 5);
        adderInvoker2.invoke();

        Object output2 = adderInvoker2.getOutput("z");
        logger.info("output2 = " + output2);

        WorkflowInvoker multiplierInvoker = new GenericInvoker(null,
                multiplierWSDLLoc, "multiplier", null, null, notifier);
        multiplierInvoker.setup();
        multiplierInvoker.setOperation("multiply");
        multiplierInvoker.setInput("x", output1);
        multiplierInvoker.setInput("y", output2);
        multiplierInvoker.invoke();

        Object output3 = multiplierInvoker.getOutput("z");
        logger.info("output3 = " + output3);

        adder.shutdownServer();
        multiplier.shutdownServer();
    }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.jython.lib.GenericInvoker

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.