Examples of registerBindingFactory()


Examples of org.apache.cxf.binding.BindingFactoryManager.registerBindingFactory()

        expect(binding.getInFaultInterceptors())
            .andStubReturn(new ArrayList<Interceptor<? extends Message>>());
        expect(binding.getOutFaultInterceptors())
            .andStubReturn(new ArrayList<Interceptor<? extends Message>>());
       
        bfm.registerBindingFactory("http://schemas.xmlsoap.org/wsdl/soap/", bf);     
   
    }
   
    @Test
    public void testInterceptorInbound() throws Exception {
View Full Code Here

Examples of org.apache.cxf.binding.BindingFactoryManager.registerBindingFactory()

        expect(binding.getInFaultInterceptors())
            .andStubReturn(new ArrayList<Interceptor<? extends Message>>());
        expect(binding.getOutFaultInterceptors())
            .andStubReturn(new ArrayList<Interceptor<? extends Message>>());
       
        bfm.registerBindingFactory("http://schemas.xmlsoap.org/wsdl/soap/", bf);

        String ns = "http://apache.org/hello_world_soap_http";
        WSDLServiceFactory factory = new WSDLServiceFactory(bus, getClass()
            .getResource("/org/apache/cxf/jaxb/resources/wsdl/hello_world.wsdl"),
                                                            new QName(ns, "SOAPService"));
View Full Code Here

Examples of org.apache.cxf.binding.BindingFactoryManager.registerBindingFactory()

        expect(binding.getInFaultInterceptors())
            .andStubReturn(new ArrayList<Interceptor<? extends Message>>());
        expect(binding.getOutFaultInterceptors())
            .andStubReturn(new ArrayList<Interceptor<? extends Message>>());

        bfm.registerBindingFactory("http://schemas.xmlsoap.org/wsdl/soap/", bf);
    }

    @Test
    public void testInterceptorInboundWrapped() throws Exception {
        setUpUsingHelloWorld();
View Full Code Here

Examples of org.apache.cxf.binding.BindingFactoryManager.registerBindingFactory()

        BindingFactoryManager bfm = bus.getExtension(BindingFactoryManager.class);
        try {
            bfm.getBindingFactory(JAXRSBindingFactory.JAXRS_BINDING_ID);
        } catch (Throwable b) {
            //not registered, let's register one
            bfm.registerBindingFactory(JAXRSBindingFactory.JAXRS_BINDING_ID,
                                       new JAXRSBindingFactory(bus));
        }
    }

    /**
 
View Full Code Here

Examples of org.apache.cxf.binding.BindingFactoryManager.registerBindingFactory()

        Binding binding = control.createMock(Binding.class);
        expect(bf.createBinding(null)).andStubReturn(binding);
        expect(binding.getInFaultInterceptors()).andStubReturn(new ArrayList<Interceptor>());
        expect(binding.getOutFaultInterceptors()).andStubReturn(new ArrayList<Interceptor>());
       
        bfm.registerBindingFactory("http://schemas.xmlsoap.org/wsdl/soap/", bf);     
   
    }
   
    public void testInterceptorInbound() throws Exception {
        setUpUsingHelloWorld();
View Full Code Here

Examples of org.apache.cxf.binding.BindingFactoryManager.registerBindingFactory()

        Binding binding = control.createMock(Binding.class);
        expect(bf.createBinding(null)).andStubReturn(binding);
        expect(binding.getInFaultInterceptors()).andStubReturn(new ArrayList<Interceptor>());
        expect(binding.getOutFaultInterceptors()).andStubReturn(new ArrayList<Interceptor>());
       
        bfm.registerBindingFactory("http://schemas.xmlsoap.org/wsdl/soap/", bf);

        String ns = "http://apache.org/hello_world_soap_http";
        WSDLServiceFactory factory = new WSDLServiceFactory(bus, getClass()
            .getResource("/org/apache/cxf/jaxb/resources/wsdl/hello_world.wsdl"),
                                                            new QName(ns, "SOAPService"));
View Full Code Here

Examples of org.apache.cxf.binding.BindingFactoryManager.registerBindingFactory()

        Binding binding = control.createMock(Binding.class);
        expect(bf.createBinding(null)).andStubReturn(binding);
        expect(binding.getInFaultInterceptors()).andStubReturn(new ArrayList<Interceptor>());
        expect(binding.getOutFaultInterceptors()).andStubReturn(new ArrayList<Interceptor>());

        bfm.registerBindingFactory("http://schemas.xmlsoap.org/wsdl/soap/", bf);
    }

    public void testInterceptorInboundWrapped() throws Exception {
        setUpUsingHelloWorld();
View Full Code Here

Examples of org.apache.cxf.binding.BindingFactoryManager.registerBindingFactory()

            // force init of bindings
            if (!CxfUtil.hasService(JAXRSBindingFactory.JAXRS_BINDING_ID)) {
                // cxf does it but with the pattern "if not here install it". It is slow so installing it without testing for presence here.
                final BindingFactoryManager bfm = bus.getExtension(BindingFactoryManager.class);
                try {
                    bfm.registerBindingFactory(JAXRSBindingFactory.JAXRS_BINDING_ID, new JAXRSBindingFactory(bus));
                } catch (final Throwable b) {
                    // no-op
                }
            }
        } finally {
View Full Code Here

Examples of org.apache.cxf.binding.BindingFactoryManager.registerBindingFactory()

    }
   
    private BindingFactoryManager getBindingFactoryManager(String ns, Bus bus) throws BusException {
        SoapBindingFactory bindingFactory = new SoapBindingFactory();
        BindingFactoryManager bfm = new BindingFactoryManagerImpl();
        bfm.registerBindingFactory(ns, bindingFactory);
        return bfm;
    }
   
    @Test
    public void testNoBodyParts() throws Exception {
View Full Code Here

Examples of org.apache.cxf.binding.BindingFactoryManager.registerBindingFactory()

    }

    public void testService(HttpBindingFactory httpFactory) throws Exception {
        httpFactory.setBus(bus);
        BindingFactoryManager bfm = getBus().getExtension(BindingFactoryManager.class);
        bfm.registerBindingFactory(HttpBindingFactory.HTTP_BINDING_ID, httpFactory);
       
        JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
        sf.setBus(getBus());
        sf.setBindingId(HttpBindingFactory.HTTP_BINDING_ID);
        sf.setServiceClass(CustomerService.class);
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.