Examples of StickySoapHeaderHandler


Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

    // Set LEAD context header.
    LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
    LeadContextHeader leadContext = leadContextHelper
        .getLeadContextHeader();
    leadContext.setEventSink(this.notifier.getEventSink());
    StickySoapHeaderHandler handler = new StickySoapHeaderHandler(
        "use-lead-header", leadContext);
    leadContext.setServiceId(this.nodeID);
    leadContext.setNodeId(this.nodeID);
    leadContext.setWorkflowId(this.notifier.getWorkflowID());
    leadContext.setTimeStep("1");
View Full Code Here

Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

                    this.messageBoxURL.toString());
        }

        this.client.useAsyncMessaging(correlator);

        StickySoapHeaderHandler handler = new StickySoapHeaderHandler(
                "use-lead-header", this.leadContext);
        this.client.addHandler(handler);

        // This handler has to be end to get the entire soap message.
        NotificationHandler notificationHandler = new NotificationHandler(
View Full Code Here

Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

//            WSIFPort port = service.getPort();
//            WSIFClient wclient = WSIFRuntime.getDefault().newClientFor(port);
           
      WSIFClient wclient = WSIFRuntime.newClient(engineURL.toString())
          .addHandler(
              new StickySoapHeaderHandler("use-lead-header",
                  leadContext)).useAsyncMessaging(correlator)
          .setAsyncResponseTimeoutInMs(33000L); // to simplify testing
      // set to just few
      // seconds
View Full Code Here

Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

      // pass some headers
      LeadContextHeader leadContext = getLeadContextHeader();

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

Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

          this.messageBoxURL.toString());
    }

    this.client.useAsyncMessaging(correlator);

    StickySoapHeaderHandler handler = new StickySoapHeaderHandler(
        "use-lead-header", this.leadContext);
    this.client.addHandler(handler);

    // This handler has to be end to get the entire soap message.
    NotificationHandler notificationHandler = new NotificationHandler(
View Full Code Here

Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

  }

  private AgentPortType createStub(String dn, String wsdlLoc) {
    LeadContextHeader leadContextHeader = new LeadContextHeader("NEI", dn);
    leadContextHeader.setUserDn(dn);
    StickySoapHeaderHandler soapHeaderHandler = new StickySoapHeaderHandler(
        "use-lead-header", leadContextHeader);

    WSIFClient wcl = XmlBeansWSIFRuntime.newClient(wsdlLoc);
    wcl.addHandler(soapHeaderHandler);
View Full Code Here

Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

        builder.getWorkflowMonitoringContext().setServiceInstanceId(this.nodeID);
        builder.getWorkflowMonitoringContext().setWorkflowTimeStep(1);
        builder.setUserIdentifier("xbaya-user");
        //todo write a UI component to collect this information and pass it through Header
//        builder.setGridMyProxyRepository("myproxy.nersc.gov","$user","$passwd",14000);
        StickySoapHeaderHandler handler = new StickySoapHeaderHandler("use-workflowcontext-header", builder.getXml());
        // Create Invoker
        this.invoker = InvokerFactory.createInvoker(this.portTypeQName, definitions, this.gfacURL, this.messageBoxURL,
                builder, true);
        this.invoker.setup();
View Full Code Here

Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

        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
        // seconds

        WSIFPort port = wclient.getPort();
View Full Code Here

Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

        logger.info("Using WSDL for service description from "
                + BASE_WSDL_LOCATION);
        this.xservice = this.httpServices
                .addService(new XSoapDocLiteralService(SERVICE_NAME,
                        BASE_WSDL_LOCATION, new AdderImpl()));
        this.xservice.addHandler(new StickySoapHeaderHandler(
                "retrieve-lead-header", LeadContextHeader.TYPE));
        this.xservice.startService();
        logger.info("Service started");
        logger.info("Service WSDL available at " + getServiceWsdlLocation());
View Full Code Here

Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

        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
        // seconds

        WSIFPort port = wclient.getPort();
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.