Examples of AegisDatabinding


Examples of org.apache.cxf.aegis.databinding.AegisDatabinding

   
    @Test
    public void talkToJaxWsHolder() throws Exception {
        JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
        factory.setServiceClass(Echo.class);
        factory.setDataBinding(new AegisDatabinding());
        factory.setAddress("local://JaxWsEcho");
        Echo client = (Echo) factory.create();
        Holder<String> sholder = new Holder<String>();
        client.echo("Channa Doll", sholder);
        assertEquals("Channa Doll", sholder.value);
View Full Code Here

Examples of org.apache.cxf.aegis.databinding.AegisDatabinding

    @Test
    public void ordinaryParamNameTest() throws Exception {
        ClientProxyFactoryBean proxyFac = new ClientProxyFactoryBean();
        ReflectionServiceFactoryBean factory = new ReflectionServiceFactoryBean();
        proxyFac.setServiceFactory(factory);
        proxyFac.setDataBinding(new AegisDatabinding());

        proxyFac.setAddress("local://Echo");
        proxyFac.setServiceClass(Echo.class);
        proxyFac.setBus(getBus());
View Full Code Here

Examples of org.apache.cxf.aegis.databinding.AegisDatabinding

        createService(CollectionServiceInterface.class, impl, null);

        ClientProxyFactoryBean proxyFac = new ClientProxyFactoryBean();
        proxyFac.getServiceFactory().getServiceConfigurations().add(0,
                                                              new XFireCompatibilityServiceConfiguration());
        proxyFac.setDataBinding(new AegisDatabinding());
        proxyFac.setAddress("local://CollectionServiceInterface");
        proxyFac.setBus(getBus());

        csi = proxyFac.create(CollectionServiceInterface.class);
    }
View Full Code Here

Examples of org.apache.cxf.aegis.databinding.AegisDatabinding

        ClientProxyFactoryBean proxyFac = new ClientProxyFactoryBean();
        ReflectionServiceFactoryBean factory = new ReflectionServiceFactoryBean();
        factory.getServiceConfigurations()
            .add(0, new org.apache.cxf.aegis.databinding.XFireCompatibilityServiceConfiguration());
        proxyFac.setServiceFactory(factory);
        proxyFac.setDataBinding(new AegisDatabinding());

        proxyFac.setAddress("local://DocService");
        proxyFac.setBus(getBus());

        Object proxyObj = proxyFac.create(IDocumentService.class);
View Full Code Here

Examples of org.apache.cxf.aegis.databinding.AegisDatabinding

            this.service = service;
        }
    }
       
    private ServiceAndMapping setupService(Class<?> seiClass, Map<String, String> namespaces) {
        AegisDatabinding db = new AegisDatabinding();
        db.setNamespaceMap(namespaces);
        Server s = createService(seiClass, null, db);
        ServiceAndMapping serviceAndMapping = new ServiceAndMapping();
        serviceAndMapping.setServer(s);
        serviceAndMapping.setService(s.getEndpoint().getService());
        serviceAndMapping.setTypeMapping((TypeMapping)
View Full Code Here

Examples of org.apache.cxf.aegis.databinding.AegisDatabinding

        ClientProxyFactoryBean proxyFac = new ClientProxyFactoryBean();
        proxyFac.setAddress("local://HelloProxyService");
        proxyFac.setBus(getBus());
        AegisContext aegisContext = new AegisContext();
        aegisContext.getBeanImplementationMap().put(Hello.class, MyHello.class.getName());
        AegisDatabinding binding = new AegisDatabinding();
        binding.setAegisContext(aegisContext);

        setupAegis(proxyFac.getClientFactoryBean(), binding);
        HelloProxyService client = proxyFac.create(HelloProxyService.class);

        Hello h = client.sayHiWithProxy();
View Full Code Here

Examples of org.apache.cxf.aegis.databinding.AegisDatabinding

        JaxWsProxyFactoryBean clientFactory = new JaxWsProxyFactoryBean();
        clientFactory.setAddress("local:not-really");
        clientFactory.setServiceClass(Service.class);

        AegisDatabinding dataBinding = new AegisDatabinding();

        NoDefaultConstructorBeanTypeRegistrar beanRegistrar
            = new NoDefaultConstructorBeanTypeRegistrar();
        beanRegistrar.setDataBinding(dataBinding);
        beanRegistrar.register();

        NoDefaultConstructorBeanKeyTypeRegistrar beanKeyRegistrar
            = new NoDefaultConstructorBeanKeyTypeRegistrar();
        beanKeyRegistrar.setDataBinding(dataBinding);
        beanKeyRegistrar.register();

        clientFactory.setDataBinding(dataBinding);

        clientFactory.create();
        String uri = dataBinding.getAegisContext().getTypeMapping().getMappingIdentifierURI();
        assertNotSame(DefaultTypeMapping.DEFAULT_MAPPING_URI, uri);
    }
View Full Code Here

Examples of org.apache.cxf.aegis.databinding.AegisDatabinding

        globalContext.setWriteXsiTypes(true);

        Set<String> l = new HashSet<String>();
        l.add(Employee.class.getName());
        globalContext.setRootClassNames(l);
        AegisDatabinding binding = new AegisDatabinding();
        binding.setAegisContext(globalContext);

        sf.getServiceFactory().setDataBinding(binding);
        sf.create();
    }
View Full Code Here

Examples of org.apache.cxf.aegis.databinding.AegisDatabinding

        Set<String> l = new HashSet<String>();
        l.add(SimpleBean.class.getName());
        l.add(WS1ExtendedException.class.getName());
        globalContext.setRootClassNames(l);
        AegisDatabinding binding = new AegisDatabinding();
        binding.setAegisContext(globalContext);

        ClientProxyFactoryBean pf = new ClientProxyFactoryBean();
        setupAegis(pf.getClientFactoryBean(), binding);
        pf.getServiceFactory().setProperties(props);
        pf.setAddress("local://WS1");
View Full Code Here

Examples of org.apache.cxf.aegis.databinding.AegisDatabinding

    public void before() throws Exception {
        super.setUp();

        ReflectionServiceFactoryBean factory = new ReflectionServiceFactoryBean();
        factory.setInvoker(new BeanInvoker(new EchoImpl()));
        factory.setDataBinding(new AegisDatabinding());

        ServerFactoryBean svrFac = new ServerFactoryBean();
        svrFac.setAddress("local://Echo");
        svrFac.setServiceFactory(factory);
        svrFac.setServiceClass(Echo.class);
        svrFac.setBus(getBus());
        svrFac.create();

        Endpoint endpoint = Endpoint.create(new EchoImpl());
        EndpointImpl impl = (EndpointImpl) endpoint;
        impl.setDataBinding(new AegisDatabinding());
        endpoint.publish("local://JaxWsEcho");
    }
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.