Package org.apache.cxf.aegis.databinding

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


        assertArrayEquals(INT_ARRAY, service.beanWithFlatArrayValue.getValues());
    }
    @Test
    public void testFlatCollection() throws Exception {
        ClientProxyFactoryBean proxyFac = new ClientProxyFactoryBean();
        proxyFac.setDataBinding(new AegisDatabinding());
        proxyFac.setAddress("local://FlatArray");
        proxyFac.setBus(getBus());

        FlatArrayServiceInterface client = proxyFac.create(FlatArrayServiceInterface.class);
        BeanWithFlatCollection bwfc = new BeanWithFlatCollection();
View Full Code Here


        super.setUp();

        JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
        sf.setServiceClass(NotificationLogImpl.class);
        sf.setAddress("local://NotificationLogImpl");
        sf.getServiceFactory().setDataBinding(new AegisDatabinding());

        sf.create();
    }
View Full Code Here

    @Test(expected = HelloException.class)
    @Ignore("Not working yet due to namespace things")
    public void testJaxwsServerSimpleClient() throws Exception {
        JaxWsServerFactoryBean sfbean = new JaxWsServerFactoryBean();
        sfbean.setServiceClass(ExceptionService.class);
        sfbean.setDataBinding(new AegisDatabinding());
        sfbean.setAddress("local://ExceptionServiceJaxWs1");
        Server server = sfbean.create();
        Service service = server.getEndpoint().getService();
        service.setInvoker(new BeanInvoker(new ExceptionServiceImpl()));
View Full Code Here

    @Test(expected = HelloException.class)
    public void testJaxwsNoXfireCompat() throws Exception {
        JaxWsServerFactoryBean sfbean = new JaxWsServerFactoryBean();
        sfbean.setServiceClass(ExceptionService.class);
        sfbean.setDataBinding(new AegisDatabinding());
        sfbean.getServiceFactory().setDataBinding(sfbean.getDataBinding());
        sfbean.setAddress("local://ExceptionServiceJaxWs");
        Server server = sfbean.create();
        Service service = server.getEndpoint().getService();
        service.setInvoker(new BeanInvoker(new ExceptionServiceImpl()));

        JaxWsProxyFactoryBean proxyFac = new JaxWsProxyFactoryBean();
        proxyFac.setAddress("local://ExceptionServiceJaxWs");
        proxyFac.setServiceClass(ExceptionService.class);
        proxyFac.setBus(getBus());
        proxyFac.getClientFactoryBean().getServiceFactory().setDataBinding(new AegisDatabinding());
        ExceptionService clientInterface = (ExceptionService)proxyFac.create();

        clientInterface.sayHiWithException();
    }
View Full Code Here

public class DuplicateArrayTest extends AbstractAegisTest {

    @Test
    public void testServiceStart() throws Exception {
        AegisDatabinding binder = new AegisDatabinding();

        JaxWsServerFactoryBean serviceFactory = new JaxWsServerFactoryBean();
        serviceFactory.getServiceFactory().setDataBinding(binder);

        TypeCreationOptions configuration = binder.getAegisContext().getTypeCreationOptions();
        configuration.setDefaultMinOccurs(1);
        configuration.setDefaultNillable(false);

        binder.getAegisContext().setWriteXsiTypes(true);
        serviceFactory.setAddress("local://DuplicateArrayService");
        serviceFactory.setServiceBean(new DuplicateArrayServiceBean());
        serviceFactory.setServiceClass(DuplicateArrayService.class);
        Document doc = this.getWSDLDocument(serviceFactory.create());
        this.assertValid("//wsdl:definitions/wsdl:types"
View Full Code Here

        ServerFactoryBean svrFactory = new ServerFactoryBean();
        svrFactory.setServiceClass(University.class);
        svrFactory.setTransportId(LocalTransportFactory.TRANSPORT_ID);
        svrFactory.setAddress("local://dlbTest");
        svrFactory.setServiceBean(new UniversityImpl());
        svrFactory.getServiceFactory().setDataBinding(new AegisDatabinding());
        svrFactory.create();

        ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
        factory.getServiceFactory().setDataBinding(new AegisDatabinding());
      
        factory.setServiceClass(University.class);
        factory.setTransportId(LocalTransportFactory.TRANSPORT_ID);
        factory.setAddress("local://dlbTest");
        University client = (University) factory.create();
View Full Code Here

    public MtomTest() {
        testUtilities = new TestUtilities(getClass());
    }

    private void setupForTest(boolean enableClientMTOM) throws Exception {
        AegisDatabinding aegisBinding = new AegisDatabinding();
        aegisBinding.setMtomEnabled(enableClientMTOM);
        ClientProxyFactoryBean proxyFac = new ClientProxyFactoryBean();
        proxyFac.setDataBinding(aegisBinding);
        proxyFac.setAddress("http://localhost:" + PORT + "/mtom");

        JaxWsProxyFactoryBean jaxwsFac = new JaxWsProxyFactoryBean();
        jaxwsFac.setDataBinding(new AegisDatabinding());
        jaxwsFac.setAddress("http://localhost:" + PORT + "/jaxWsMtom");

        Map<String, Object> props = new HashMap<String, Object>();
        if (enableClientMTOM) {
            props.put("mtom-enabled", Boolean.TRUE);
View Full Code Here

        if (specifyWsdl) {
            factory.setServiceName(new QName("http://v1_1_2.rtf2pdf.doc.ws.daisy.marbes.cz",
                                             "AegisJaxWsWsdlNsImplService"));
            factory.setWsdlLocation("http://localhost:" + PORT + "/aegisJaxWsWSDLNS?wsdl");
        }
        factory.getServiceFactory().setDataBinding(new AegisDatabinding());
        factory.setAddress("http://localhost:" + PORT + "/aegisJaxWsWSDLNS");
        client = (AegisJaxWsWsdlNs)factory.create();
    }
View Full Code Here

            factory.getProperties().put("password", "pass");
            factory.getOutInterceptors().add(wss4jOut);
        } else {
            factory.setAddress("http://localhost:" + PORT + "/aegisJaxWs");           
        }
        factory.getServiceFactory().setDataBinding(new AegisDatabinding());

        client = (AegisJaxWs)factory.create();
    }
View Full Code Here

        assertTrue("server did not launch correctly", launchServer(AegisServer.class));
    }
   
    @Test
    public void testAegisClient() throws Exception {
        AegisDatabinding aegisBinding = new AegisDatabinding();
        ClientProxyFactoryBean proxyFactory = new ClientProxyFactoryBean();
        proxyFactory.setDataBinding(aegisBinding);
        proxyFactory.setServiceClass(AuthService.class);
        proxyFactory.setAddress("http://localhost:" + PORT + "/service");
        AuthService service = (AuthService) proxyFactory.create();
View Full Code Here

TOP

Related Classes of org.apache.cxf.aegis.databinding.AegisDatabinding

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.