Package org.apache.cxf.jaxws

Examples of org.apache.cxf.jaxws.JAXWSMethodInvoker


    @Test
    public void testSAAJProviderCodeFirst() throws Exception {
        JaxWsServiceFactoryBean bean = new JaxWsServiceFactoryBean();
        bean.setServiceClass(SAAJProvider.class);
        bean.setBus(getBus());
        bean.setInvoker(new JAXWSMethodInvoker(new SAAJProvider()));
       
        Service service = bean.create();

        assertEquals("SAAJProviderService", service.getName().getLocalPart());
View Full Code Here


                                                       context);
        } catch (Exception e) {
            throw new WebServiceException("Service resource injection failed", e);
        }
       
        service.setInvoker(new JAXWSMethodInvoker(this.implementor));      

        JNDIResolver jndiResolver = (JNDIResolver) bus.getExtension(JNDIResolver.class);
        this.annotationProcessor = new JAXWSAnnotationProcessor(jndiResolver, new WebServiceContextImpl());
    }
View Full Code Here

            new CXFServiceConfiguration(this.portInfo, wsdlURL);
        serviceFactory.getConfigurations().add(0, configuration);

        service = serviceFactory.create();
       
        service.setInvoker(new JAXWSMethodInvoker(instance));      

        JNDIResolver jndiResolver = (JNDIResolver) bus.getExtension(JNDIResolver.class);
        this.annotationProcessor = new JAXWSAnnotationProcessor(jndiResolver, new WebServiceContextImpl());
    }
View Full Code Here

        if (mexEndpoint == null) {
            MEXJaxWsServerFactoryBean factory
                = new MEXJaxWsServerFactoryBean(message.getExchange().getBus());
            try {
                Endpoint endpoint = factory.createEndpoint();
                endpoint.getService().setInvoker(new JAXWSMethodInvoker(ep));
               
                mexEndpoint = endpoint;
            } catch (Exception ex) {
                throw new Fault(ex);
            }
View Full Code Here

    protected void run() {
       
        Factory factory = new PerRequestFactory(DocLitWrappedCodeFirstServiceImpl.class);
        factory = new PooledFactory(factory, 4);
       
        JAXWSMethodInvoker invoker = new JAXWSMethodInvoker(factory);
        JaxWsServerFactoryBean factoryBean;
       
        factoryBean = new JaxWsServerFactoryBean();
        factoryBean.setAddress(DOCLIT_CODEFIRST_URL);
        factoryBean.setServiceClass(DocLitWrappedCodeFirstServiceImpl.class);
View Full Code Here

    @Test
    public void testXMLBindingFromCode() throws Exception {
        JaxWsServiceFactoryBean bean = new JaxWsServiceFactoryBean();
        bean.setServiceClass(DOMSourcePayloadProvider.class);
        bean.setBus(getBus());
        bean.setInvoker(new JAXWSMethodInvoker(new DOMSourcePayloadProvider()));
       
        Service service = bean.create();

        assertEquals("DOMSourcePayloadProviderService", service.getName().getLocalPart());
View Full Code Here

    @Test
    public void testSOAPBindingFromCode() throws Exception {
        JaxWsServiceFactoryBean bean = new JaxWsServiceFactoryBean();
        bean.setServiceClass(SOAPSourcePayloadProvider.class);
        bean.setBus(getBus());
        bean.setInvoker(new JAXWSMethodInvoker(new SOAPSourcePayloadProvider()));
       
        Service service = bean.create();

        assertEquals("SOAPSourcePayloadProviderService", service.getName().getLocalPart());
View Full Code Here

    @Test
    public void testSAAJProviderCodeFirst() throws Exception {
        JaxWsServiceFactoryBean bean = new JaxWsServiceFactoryBean();
        bean.setServiceClass(SAAJProvider.class);
        bean.setBus(getBus());
        bean.setInvoker(new JAXWSMethodInvoker(new SAAJProvider()));
       
        Service service = bean.create();

        assertEquals("SAAJProviderService", service.getName().getLocalPart());
View Full Code Here

        } finally {
            Thread.currentThread().setContextClassLoader(old);
        }

        this.injector = injector;
        service.setInvoker(new JAXWSMethodInvoker(implementor));
    }
View Full Code Here

    protected Invoker createInvoker() {
        Class<?> cls = getServiceClass();
        if (cls.isInterface()) {
            return null;
        }
        return new JAXWSMethodInvoker(new SingletonFactory(getServiceClass()));
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.jaxws.JAXWSMethodInvoker

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.