Package org.apache.cxf.jaxws

Examples of org.apache.cxf.jaxws.JaxWsServerFactoryBean.create()


            bean.setStart(true);
            bean.setAddress("camel://" + createEndpointUri());
            if (loggingFeatureEnabled) {
                bean.getFeatures().add(new LoggingFeature());
            }           
            server = bean.create();
        } else {
            JAXRSServerFactoryBean bean = new JAXRSServerFactoryBean();
            bean.setServiceBeans(serviceBeans);
            bean.setAddress("camel://" + createEndpointUri());
            bean.setStart(true);
View Full Code Here


            bean.setTransportId(CxfBeanTransportFactory.TRANSPORT_ID);
            bean.setBus(bus);
            if (loggingFeatureEnabled) {
                bean.getFeatures().add(new LoggingFeature());
           
            server = bean.create();
        }
    }
   
    /**
     * @param cxfBeanComponent
View Full Code Here

            bean.setStart(true);
            bean.setAddress("camel://" + createEndpointUri());
            if (loggingFeatureEnabled) {
                bean.getFeatures().add(new LoggingFeature());
            }           
            server = bean.create();
        } else {
            JAXRSServerFactoryBean bean = new JAXRSServerFactoryBean();
            bean.setServiceBeans(serviceBeans);
            bean.setAddress("camel://" + createEndpointUri());
            bean.setStart(true);
View Full Code Here

            bean.setBus(bus);
            if (loggingFeatureEnabled) {
                bean.getFeatures().add(new LoggingFeature());
            }
            bean.setProviders(providers);
            server = bean.create();
        }
    }
   
    private void registerTransportFactory(CxfBeanComponent cxfBeanComponent) {
        CxfBeanTransportFactory transportFactory = new CxfBeanTransportFactory();
View Full Code Here

    @BeforeClass
    public static void startServer() {
        JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
        sf.setAddress("http://localhost:9002/cxf");
        sf.setServiceBean(new ReportIncidentEndpointService());
        server = sf.create();
    }

    @AfterClass
    public static void stopServer() {
        if (server != null) {
View Full Code Here

        f.setTransportIds(tp);
        f.setBus(bus);
        f.register();
       
       
        Server s = factory.create();

        try {
            ServiceWSDLBuilder builder = new ServiceWSDLBuilder(bus,
                                                                s.getEndpoint().getService()
                                                                    .getServiceInfos());
View Full Code Here

             
        if (HTTPBinding.HTTP_BINDING.equals(implInfo.getBindingType())) {
            svrFactory.setTransportId("http://cxf.apache.org/bindings/xformat");
        }
       
        server = svrFactory.create();
       
        init();

        org.apache.cxf.endpoint.Endpoint endpoint = getEndpoint();
View Full Code Here

        // wrapper XML elements and we'll have prettier XML text. This
        // means that we need to stick to one request and one response
        // parameter though.
        sf.getServiceFactory().setWrapped(false);

        sf.create();
    }

    private static void createJsonRestService(Object serviceObj) {
        // Build up the server factory bean
        JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
View Full Code Here

        MappedXMLOutputFactory xof = new MappedXMLOutputFactory(nstojns);
        properties.put(XMLOutputFactory.class.getName(), xof);

        sf.setProperties(properties);

        sf.create();
    }

    private static void createSoapService(Object serviceObj) {
        JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
        sf.setServiceClass(CustomerService.class);
View Full Code Here

        sf.setServiceClass(CustomerService.class);
        sf.setAddress("http://localhost:8080/soap");
        sf.getServiceFactory().setInvoker(new BeanInvoker(serviceObj));
        sf.getServiceFactory().setWrapped(false);

        sf.create();
    }

    /**
     * Serve out a static HTTP file because the Javascript XMLHttpRequest can
     * only work within one domain.
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.