Package xsul.xhandler_soap_sticky_header

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


        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

        String wsdlLocation = XBayaPathConstants.WSDL_DIRECTORY
                + File.separator + wsdlPath;
        XService xservice = this.httpServices
                .addService(new XSoapDocLiteralService(serviceName,
                        wsdlLocation, serviceImpl));
        xservice.addHandler(new StickySoapHeaderHandler("retrieve-lead-header",
                LeadContextHeader.TYPE));
        xservice.startService();

        WsdlDefinitions wsdl = xservice.getWsdl();
View Full Code Here

        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

        this.httpServices = new HttpBasedServices(this.port);
        this.xservice = this.httpServices
                .addService(new XSoapDocLiteralService(Echo.SERVICE_NAME,
                        Service.MATH_DIRECTORY_NAME + File.separator
                                + Echo.WSDL_PATH, new EchoImpl()));
        this.xservice.addHandler(new StickySoapHeaderHandler(
                "retrieve-lead-header", LeadContextHeader.TYPE));
        this.xservice.startService();
    }
View Full Code Here

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

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

  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
        .appendWSDLQuary(wsdlLoc), null, null, null, null);
    if (this.proxy != null) {
View Full Code Here

            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

    //FIXME: Temporary fix
    if (this.leadContext == null) {
       LeadContextHeader lh = new LeadContextHeader(UUID.randomUUID().toString(), "XBaya-User");
       this.leadContext = lh;
    }
    StickySoapHeaderHandler handler = new StickySoapHeaderHandler(
        "use-lead-header", this.leadContext);
    client.addHandler(handler);

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

TOP

Related Classes of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

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.