Package org.apache.cxf.service.factory

Examples of org.apache.cxf.service.factory.HelloServiceImpl


    @Test   
    public void testMultipleSoapBindings() throws Exception {
        ServerFactoryBean svrBean1 = new ServerFactoryBean();
        svrBean1.setAddress("http://localhost/Hello");
        svrBean1.setServiceClass(HelloService.class);
        svrBean1.setServiceBean(new HelloServiceImpl());
        svrBean1.setBus(getBus());
        svrBean1.getInInterceptors().add(new AbstractPhaseInterceptor<Message>(Phase.USER_LOGICAL) {
            public void handleMessage(Message message) throws Fault {
                service1Invoked = true;
            }
        });
        svrBean1.create();
       
        ServerFactoryBean svrBean2 = new ServerFactoryBean();
        svrBean2.setAddress("http://localhost/Hello");
        svrBean2.setServiceClass(HelloService.class);
        svrBean2.setServiceBean(new HelloServiceImpl());
        svrBean2.setBus(getBus());
        svrBean2.getInInterceptors().add(new AbstractPhaseInterceptor<Message>(Phase.USER_LOGICAL) {
            public void handleMessage(Message message) throws Fault {
                service2Invoked = true;
            }
View Full Code Here


    @Test
    public void testMultipleSoapBindings() throws Exception {
        ServerFactoryBean svrBean1 = new ServerFactoryBean();
        svrBean1.setAddress("http://localhost/Hello");
        svrBean1.setServiceClass(HelloService.class);
        svrBean1.setServiceBean(new HelloServiceImpl());
        svrBean1.setBus(getBus());
        svrBean1.getInInterceptors().add(new AbstractPhaseInterceptor<Message>() {
            @Override
            public String getPhase() {
                return Phase.USER_LOGICAL;
            }

            public void handleMessage(Message message) throws Fault {
                service1Invoked = true;
            }
        });
        svrBean1.create();
       
        ServerFactoryBean svrBean2 = new ServerFactoryBean();
        svrBean2.setAddress("http://localhost/Hello");
        svrBean2.setServiceClass(HelloService.class);
        svrBean2.setServiceBean(new HelloServiceImpl());
        svrBean2.setBus(getBus());
        svrBean2.getInInterceptors().add(new AbstractPhaseInterceptor<Message>() {
            @Override
            public String getPhase() {
                return Phase.USER_LOGICAL;
View Full Code Here

    @Test   
    public void testMultipleSoapBindings() throws Exception {
        ServerFactoryBean svrBean1 = new ServerFactoryBean();
        svrBean1.setAddress("http://localhost/Hello");
        svrBean1.setServiceClass(HelloService.class);
        svrBean1.setServiceBean(new HelloServiceImpl());
        svrBean1.setBus(getBus());
        svrBean1.getInInterceptors().add(new AbstractPhaseInterceptor<Message>(Phase.USER_LOGICAL) {
            public void handleMessage(Message message) throws Fault {
                service1Invoked = true;
            }
        });
        svrBean1.create();
       
        ServerFactoryBean svrBean2 = new ServerFactoryBean();
        svrBean2.setAddress("http://localhost/Hello");
        svrBean2.setServiceClass(HelloService.class);
        svrBean2.setServiceBean(new HelloServiceImpl());
        svrBean2.setBus(getBus());
        svrBean2.getInInterceptors().add(new AbstractPhaseInterceptor<Message>(Phase.USER_LOGICAL) {
            public void handleMessage(Message message) throws Fault {
                service2Invoked = true;
            }
View Full Code Here

TOP

Related Classes of org.apache.cxf.service.factory.HelloServiceImpl

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.