Examples of StickySoapHeaderHandler


Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

     */
    private void start(String serviceName, String wsdlName, String wsdlPath, Object serviceImpl) throws IOException {
        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();

        File wsdlFile = new File(Service.SAMPLE_WSDL_DIRECTORY, wsdlName);
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("generate");
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 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

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

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 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();
        WSIFOperation operation = port.createOperation("approve");
View Full Code Here

Examples of xsul.xhandler_soap_sticky_header.StickySoapHeaderHandler

     */
    public void run() {
        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

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("echo");
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

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 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
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.