Package org.apache.cxf.service.factory

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


            throw new WebServiceException(e);
        }
    }

    private AbstractServiceFactoryBean createDispatchService(DataBinding db) {
        AbstractServiceFactoryBean serviceFactory;

        Service dispatchService = null;       
       
        if (null != wsdlURL) {
            WSDLServiceFactory sf = new WSDLServiceFactory(bus, wsdlURL, serviceName);
View Full Code Here


        JaxWsClientFactoryBean clientFac = new JaxWsClientFactoryBean();

        //Initialize Features.
        configureObject(portName.toString() + ".jaxws-client.proxyFactory", clientFac);

        AbstractServiceFactoryBean sf = null;
        try {
            sf = createDispatchService(new SourceDataBinding());
        } catch (ServiceConstructionException e) {
            throw new WebServiceException(e);
        }
View Full Code Here

        JaxWsClientFactoryBean clientFac = new JaxWsClientFactoryBean();
       
        //Initialize Features.
        configureObject(portName.toString() + ".jaxws-client.proxyFactory", clientFac);

        AbstractServiceFactoryBean sf = null;
        try {
            sf = createDispatchService(new JAXBDataBinding(context));
        } catch (ServiceConstructionException e) {
            throw new WebServiceException(e);
        }
View Full Code Here

            throw new WebServiceException(e);
        }
    }

    private AbstractServiceFactoryBean createDispatchService(DataBinding db) {
        AbstractServiceFactoryBean serviceFactory;

        Service dispatchService = null;       
       
        if (null != wsdlURL) {
            WSDLServiceFactory sf = new WSDLServiceFactory(bus, wsdlURL, serviceName);
View Full Code Here

        JaxWsProxyFactoryBean clientFac = new JaxWsProxyFactoryBean();

        //Initialize Features.
        configureObject(portName.toString() + ".jaxws-client.proxyFactory", clientFac);

        AbstractServiceFactoryBean sf = null;
        try {
            DataBinding db;
            if (context != null) {
                db = new JAXBDataBinding(context);
            } else {
View Full Code Here

            Object implementor = new TestMtomImpl();
            String address = "http://localhost:9036/mime-test";
            try {
                Bus bus = BusFactoryHelper.newInstance().getDefaultBus();
                JaxWsImplementorInfo implInfo = new JaxWsImplementorInfo(implementor.getClass());
                AbstractServiceFactoryBean serviceFactory = new JaxWsServiceFactoryBean(implInfo);
                serviceFactory.setBus(bus);
                Service service = serviceFactory.create();
                QName endpointName = implInfo.getEndpointName();
                EndpointInfo ei = service.getServiceInfo().getEndpoint(endpointName);
                service.setInvoker(new JAXWSMethodInvoker(implementor));
                org.apache.cxf.endpoint.EndpointImpl endpoint = new JaxWsEndpointImpl(bus, service, ei);
                SOAPBinding jaxWsSoapBinding = new SOAPBindingImpl(ei.getBinding());
View Full Code Here

    }
    private AbstractServiceFactoryBean createDispatchService(JAXBContext context) {
        return createDispatchService(new JAXBDataBinding(context));
    }
    private AbstractServiceFactoryBean createDispatchService(JAXBDataBinding db) {
        AbstractServiceFactoryBean serviceFactory;

        Service dispatchService = null;       
       
        if (null != wsdlURL) {
            WSDLServiceFactory sf = new WSDLServiceFactory(bus, wsdlURL, serviceName);
View Full Code Here

        configureObject(dispatchService);
        return serviceFactory;
    }

    public <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Mode mode) {
        AbstractServiceFactoryBean sf = createDispatchService();
        Endpoint endpoint = getJaxwsEndpoint(portName, sf);

        Dispatch<T> disp = new DispatchImpl<T>(bus, mode, type, getExecutor(), endpoint);

        configureObject(disp);
View Full Code Here

        return disp;
    }

    public Dispatch<Object> createDispatch(QName portName, JAXBContext context, Mode mode) {

        AbstractServiceFactoryBean sf = createDispatchService(context);
        Endpoint endpoint = getJaxwsEndpoint(portName, sf);
        Dispatch<Object> disp = new DispatchImpl<Object>(bus, mode, context, Object.class, getExecutor(),
                                                         endpoint);

        configureObject(disp);
View Full Code Here

            throw new WebServiceException(e);
        }
    }

    private AbstractServiceFactoryBean createDispatchService(DataBinding db) {
        AbstractServiceFactoryBean serviceFactory;

        Service dispatchService = null;       
       
        if (null != wsdlURL) {
            WSDLServiceFactory sf = new WSDLServiceFactory(bus, wsdlURL, serviceName);
View Full Code Here

TOP

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

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.