Package xsul.lead

Examples of xsul.lead.LeadContextHeader


    Invoker invoker;
    String wsdlLocation = InterpreterUtil.getEPR((WSNode) foreachWSNode);
    QName portTypeQName = wsComponent.getPortTypeQName();
    if (null == wsdlLocation) {
      if (gfacURLString.startsWith("https")) {
        LeadContextHeader leadCtxHeader = null;
        try {
          leadCtxHeader = XBayaUtil.buildLeadContextHeader(this.getWorkflow(), this.getConfig().getConfiguration(), new MonitorConfiguration(this
              .getConfig().getConfiguration().getBrokerURL(), this.config.getTopic(), true, this.getConfig().getConfiguration()
              .getMessageBoxURL()), foreachWSNode.getID(), null);
        } catch (URISyntaxException e) {
View Full Code Here


            throws URISyntaxException {

        XBayaConfiguration configuration = engine.getConfiguration();
        Workflow workflow = engine.getGUI().getWorkflow();

        LeadContextHeader leadContext = buildLeadContextHeader(workflow, configuration, monitorConfiguration, nodeId,
                resourceMapping);

        return leadContext;

    }
View Full Code Here

        leadContextHelper.setWorkflowInstanceID(workflow.getGPELInstanceID());
        leadContextHelper.setWorkflowTemplateID(workflow.getUniqueWorkflowName());

        leadContextHelper.setMonitorConfiguration(monitorConfiguration);

        LeadContextHeader leadContext = leadContextHelper.getLeadContextHeader();

        leadContext.setNodeId(nodeId);

        leadContext.setTimeStep("1");

        if (resourceMapping != null) {
            leadContext.setResourceMapping(resourceMapping);
        }
        return leadContext;

    }
View Full Code Here

            logger.finest("leadHeader: "
                    + XMLUtil.xmlElementToString(leadHeader));
            if (leadHeader == null) {
                return null;
            }
            LeadContextHeader leadContext = new LeadContextHeader(leadHeader);
            ServiceNotificationSender sender = new ServiceNotificationSender(
                    soapFragrance, leadContext);
            sender.serviceInvoked(inputElement);

            return sender;
View Full Code Here

        // LEAD Context Header
        // Create lead context.
        LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
        leadContextHelper.setXBayaConfiguration(this.configuration);
        LeadContextHeader leadContext = leadContextHelper
                .getLeadContextHeader();
        leadContext.setWorkflowId(URI
                .create("http://host/2005/11/09/workflowinstace"));
        leadContext.setNodeId("decoder1");
        leadContext.setTimeStep("5");
        leadContext.setServiceInstanceId(URI.create("decoder-instance-10"));

        XmlElement element3 = XMLUtil.xmlElement5ToXmlElement3(definitions
                .xml());
        xsul.wsdl.WsdlDefinitions definitions3 = new xsul.wsdl.WsdlDefinitions(
                element3);
View Full Code Here

        WsdlDefinitions wsdl = this.workflowClient.start(instance);

        // Create lead context.
        LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
        leadContextHelper.setXBayaConfiguration(this.configuration);
        LeadContextHeader leadContext = leadContextHelper
                .getLeadContextHeader();

        URI messageBoxURL = null;
        if (this.configuration.isPullMode()) {
            messageBoxURL = this.configuration.getMessageBoxURL();
View Full Code Here

        correlator = null;

        // pass some headers
        LeadContextHeaderHelper helper = new LeadContextHeaderHelper();
        helper.setXBayaConfiguration(new XBayaConfiguration());
        LeadContextHeader leadContext = helper.getLeadContextHeader();
        leadContext.setWorkflowId(URI
                .create("http://host/2005/11/09/workflowinstace"));
        leadContext.setNodeId("decoder1");
        leadContext.setTimeStep("5");
        leadContext.setServiceId("decoder-instance-10");

        WSIFClient wclient = WSIFRuntime.newClient(wsdlLoc).addHandler(
                new StickySoapHeaderHandler("use-lead-header", leadContext))
                .useAsyncMessaging(correlator).setAsyncResponseTimeoutInMs(
                        33000L); // to simplify testing set to just few
View Full Code Here

        WsdlDefinitions wsdl = client.start(instance);

        // Create lead context.
        LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
        leadContextHelper.setXBayaConfiguration(this.configuration);
        LeadContextHeader leadContext = leadContextHelper
                .getLeadContextHeader();

        URI messageBoxURL = null;
        if (this.configuration.isPullMode()) {
            messageBoxURL = this.configuration.getMessageBoxURL();
View Full Code Here

      throw new MyLeadException(e);
    }
  }

  public AgentPortType createStub(String dn) throws MyLeadException {
    LeadContextHeader leadContextHeader = null;
    leadContextHeader = new LeadContextHeader("NEI", dn);
    leadContextHeader.setUserDn(dn);

    StickySoapHeaderHandler soapHeaderHandler = new StickySoapHeaderHandler(
        "use-lead-header", leadContextHeader);
    WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
    WSIFService service = factory.getService(WSDLUtil
View Full Code Here

    LEADWorkflowInvoker invoker = null;
    try {
     
      WsdlDefinitions wsdl = workflow.getOdeInvokableWSDL(configuration.getDSCURL(), configuration.getODEURL());
     
      LeadContextHeader leadContext = WSDLUtil.buildLeadContextHeader(this.engine,
          monitorConfiguration, StringUtil.convertToJavaIdentifier(engine
              .getWorkflow().getName()),resourceMapping);
      ///////////////////////////////////////
      leadContext.setExperimentId(monitorConfiguration.getTopic());
     
     
      //////////////////////////////////////////////////////////////
     
      URI messageBoxURL = null;
      if (monitorConfiguration.isPullMode()) {
        messageBoxURL = monitorConfiguration.getMessageBoxURL();
      }

      // create an invoker with LEAD Context
      GsiInvoker secureInvoker = null;
      if (this.engine.getWorkflowClient().isSecure()) {
        MyProxyClient myProxyClient = this.engine.getMyProxyClient();
        secureInvoker = new GsiInvoker(myProxyClient.getProxy(),
            XBayaSecurity.getTrustedCertificates());
       
        leadContext.setScmsUrl(URI.create("https://tyr12.cs.indiana.edu:60443/SCMS?wsdl"));

       
       
      }
      invoker = new LEADWorkflowInvoker(wsdl, leadContext, messageBoxURL,
View Full Code Here

TOP

Related Classes of xsul.lead.LeadContextHeader

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.