Examples of StickySoapHeaderHandler


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 ArrayAdderImpl()));
        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

        logger.info("Using WSDL for service description from "
                + BASE_WSDL_LOCATION);
        this.xservice = this.httpServices
                .addService(new XSoapDocLiteralService(SERVICE_NAME,
                        BASE_WSDL_LOCATION, new ApproverImpl()));
        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

Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

            correlator = new XsulMsgBoxWsaResponsesCorrelator(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(this.leadContext);
        this.client.addHandler(notificationHandler);
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","fangliu","Jdas7wph",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

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

        WSIFClient wclient = WSIFRuntime.getDefault().newClientFor(definitions3, "TestCMD_Example1SoapPort");
        StickySoapHeaderHandler handler = new StickySoapHeaderHandler("use-lead-header", leadContext);

        wclient.addHandler(handler);
        wclient.useAsyncMessaging(correlator);
        wclient.setAsyncResponseTimeoutInMs(33000L);
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

        logger.info("Server started on " + this.httpServices.getServerPort());

        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();
        WSIFOperation operation = port.createOperation("add");
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.