Examples of WSDLServiceFactory


Examples of org.apache.cxf.wsdl11.WSDLServiceFactory

    }
   
    protected void setupServiceInfo(String ns, String wsdl, String serviceName, String portName) {       
        URL wsdlUrl = getClass().getResource(wsdl);
        assertNotNull(wsdlUrl);
        WSDLServiceFactory factory = new WSDLServiceFactory(bus, wsdlUrl, new QName(ns, serviceName));

        Service service = factory.create();       
        endpointInfo = service.getServiceInfo().getEndpoint(new QName(ns, portName));
  
    }
View Full Code Here

Examples of org.apache.cxf.wsdl11.WSDLServiceFactory

        }
    }       
   
    public EndpointInfo setupServiceInfo(String ns, String wsdl, String serviceName, String portName) throws Exception {     
        URL wsdlUrl = getClass().getResource(wsdl);
        WSDLServiceFactory factory = new WSDLServiceFactory(bus, wsdlUrl, new QName(ns, serviceName));

        Service service = factory.create();
        EndpointInfo endpointInfo = service.getServiceInfo().getEndpoint(new QName(ns, portName));
        return endpointInfo;

    }                 
View Full Code Here

Examples of org.apache.cxf.wsdl11.WSDLServiceFactory

    }
   
    protected void setupServiceInfo(String ns, String wsdl, String serviceName, String portName) {       
        URL wsdlUrl = getClass().getResource(wsdl);
        assertNotNull(wsdlUrl);
        WSDLServiceFactory factory = new WSDLServiceFactory(bus, wsdlUrl, new QName(ns, serviceName));

        Service service = factory.create();       
        endpointInfo = service.getServiceInfo().getEndpoint(new QName(ns, portName));
  
    }
View Full Code Here

Examples of org.apache.cxf.wsdl11.WSDLServiceFactory

    }
   
    protected void setupServiceInfo(String ns, String wsdl, String serviceName, String portName) {       
        URL wsdlUrl = getClass().getResource(wsdl);
        assertNotNull(wsdlUrl);
        WSDLServiceFactory factory = new WSDLServiceFactory(bus, wsdlUrl, new QName(ns, serviceName));

        Service service = factory.create();       
        endpointInfo = service.getServiceInfo().getEndpoint(new QName(ns, portName));
  
    }
View Full Code Here

Examples of org.apache.cxf.wsdl11.WSDLServiceFactory

        if (classLoader == null) {
            classLoader = Thread.currentThread().getContextClassLoader();
        }
        LOG.log(Level.FINE, "Creating client from WSDL " + wsdlUrl);

        WSDLServiceFactory sf = (service == null)
            ? (new WSDLServiceFactory(bus, wsdlUrl)) : (new WSDLServiceFactory(bus, wsdlUrl, service));
        sf.setAllowElementRefs(allowRefs);
        Service svc = sf.create();

        ClientImpl client = new ClientImpl(bus, svc, port,
                                           getEndpointImplFactory());

        //all SI's should have the same schemas
View Full Code Here

Examples of org.apache.cxf.wsdl11.WSDLServiceFactory

    protected void buildServiceFromWSDL(String url) {
        if (LOG.isLoggable(Level.FINE)) {
            LOG.fine("Creating Service " + getServiceQName() + " from WSDL: " + url);
        }
        populateFromClass = false;
        WSDLServiceFactory factory = new WSDLServiceFactory(getBus(), url, getServiceQName());
        setService(factory.create());

        setServiceProperties();

        initializeWSDLOperations();
View Full Code Here

Examples of org.apache.cxf.wsdl11.WSDLServiceFactory

                addPort(name, bindingID, address);
            }
        } catch (WebServiceException e) {
            throw e;
        } catch (Throwable e) {
            WSDLServiceFactory sf = new WSDLServiceFactory(bus, wsdlURL, serviceName);
            Service service = sf.create();
            for (ServiceInfo si : service.getServiceInfos()) {
                for (EndpointInfo ei : si.getEndpoints()) {
                    this.ports.add(ei.getName());
                    String bindingID = BindingID.getJaxwsBindingID(ei.getTransportId());
                    addPort(ei.getName(), bindingID, ei.getAddress());
View Full Code Here

Examples of org.apache.cxf.wsdl11.WSDLServiceFactory

        AbstractServiceFactoryBean serviceFactory;

        Service dispatchService = null;       
       
        if (null != wsdlURL) {
            WSDLServiceFactory sf = new WSDLServiceFactory(bus, wsdlURL, serviceName);
            dispatchService = sf.create();           
            dispatchService.setDataBinding(db);
            serviceFactory = sf;
        } else {
            ReflectionServiceFactoryBean sf = new JaxWsServiceFactoryBean();
            sf.setBus(bus);
            sf.setServiceName(serviceName);
            // maybe we can find another way to create service which have no SEI
            sf.setServiceClass(DummyImpl.class);
            sf.setDataBinding(db);
            dispatchService = sf.create();
            serviceFactory = sf;
        }   
        configureObject(dispatchService);
        for (ServiceInfo si : dispatchService.getServiceInfos()) {
            si.setProperty("soap.force.doclit.bare", Boolean.TRUE);
View Full Code Here

Examples of org.apache.cxf.wsdl11.WSDLServiceFactory

    protected void buildServiceFromWSDL(String url) {
        if (LOG.isLoggable(Level.INFO)) {
            LOG.info("Creating Service " + getServiceQName() + " from WSDL: " + url);
        }
        populateFromClass = false;
        WSDLServiceFactory factory = new WSDLServiceFactory(getBus(), url, getServiceQName());
        boolean setEPName = true;
        if (features != null) {
            for (AbstractFeature f : features) {
                if (f instanceof FailoverFeature) {
                    setEPName = false;
                }
            }
        }
        if (setEPName) {
            factory.setEndpointName(getEndpointName(false));
        }
        setService(factory.create());

        setServiceProperties();
       
        EndpointInfo epInfo = getEndpointInfo();
        if (epInfo != null) {
View Full Code Here

Examples of org.apache.cxf.wsdl11.WSDLServiceFactory

    protected void buildServiceFromWSDL(String url) {
        if (LOG.isLoggable(Level.INFO)) {
            LOG.info("Creating Service " + getServiceQName() + " from WSDL: " + url);
        }
        populateFromClass = false;
        WSDLServiceFactory factory = new WSDLServiceFactory(getBus(), url, getServiceQName());
        boolean setEPName = true;
        if (features != null) {
            for (AbstractFeature f : features) {
                if (f instanceof FailoverFeature) {
                    setEPName = false;
                }
            }
        }
        if (setEPName) {
            factory.setEndpointName(getEndpointName(false));
        }
        setService(factory.create());

        setServiceProperties();
       
        EndpointInfo epInfo = getEndpointInfo();
        if (epInfo != null) {
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.