Package org.objectweb.celtix

Examples of org.objectweb.celtix.Bus


       
        testUtils = new TestUtils();
    }

    public void testCreateClientBinding() throws Exception {
        Bus bus = Bus.init(new String[0]);
       
        // programmatically add the corba binding factory
        BindingManager manager = bus.getBindingManager();
        CorbaBindingFactory corbaBF = new CorbaBindingFactory();
        corbaBF.init(bus);
        manager.registerBinding(CorbaConstants.NU_WSDL_CORBA, corbaBF);
       
        BindingFactory factory =
            bus.getBindingManager().getBindingFactory("http://schemas.apache.org/yoko/bindings/corba");
       
        EndpointReferenceType address = testUtils.getSimpleTestEndpointReference();
       
        ClientBinding cb = factory.createClientBinding(address);
        assertNotNull(cb);
View Full Code Here


        assertNotNull(binding);
        assertTrue(CorbaBindingImpl.class.isInstance(binding));
    }
   
    public void testCreateServerBinding() throws Exception {
        Bus bus = Bus.init(new String[0]);
       
        // programmatically add the corba binding factory
        BindingManager manager = bus.getBindingManager();
        CorbaBindingFactory corbaBF = new CorbaBindingFactory();
        corbaBF.init(bus);
        manager.registerBinding(CorbaConstants.NU_WSDL_CORBA, corbaBF);
       
        BindingFactory factory =
            bus.getBindingManager().getBindingFactory("http://schemas.apache.org/yoko/bindings/corba");
       
        EndpointReferenceType address = testUtils.getSimpleTestEndpointReference();
       
        ServerBinding sb = factory.createServerBinding(address, null);
        assertNotNull(sb);
View Full Code Here

        BindingManager bindingManager = EasyMock.createNiceMock(BindingManager.class);
        String bindingId = "http://schemas.xmlsoap.org/wsdl/soap/";
        bindingManager.getBindingFactory(bindingId);
        EasyMock.expectLastCall().andReturn(bindingFactory);

        Bus bus = EasyMock.createNiceMock(Bus.class);
        bus.getBindingManager();
        EasyMock.expectLastCall().andReturn(bindingManager);
        EasyMock.replay(bindingManager);
        EasyMock.replay(bus);

        //Create WSDL Definition
View Full Code Here

        BindingManager bindingManager = EasyMock.createNiceMock(BindingManager.class);
        String bindingId = "http://schemas.xmlsoap.org/wsdl/soap/";
        bindingManager.getBindingFactory(bindingId);
        EasyMock.expectLastCall().andReturn(bindingFactory);

        Bus bus = EasyMock.createNiceMock(Bus.class);
        bus.getBindingManager();
        EasyMock.expectLastCall().andReturn(bindingManager);
        EasyMock.replay(bindingManager);
        EasyMock.replay(bus);

        // Create WSDL Definition
View Full Code Here

    protected Class<WebServiceBinding> getBindingType() {
        return WebServiceBinding.class;
    }

    private Bus getBus(WSDLDefinitionRegistry wsdlDefinitionRegistry) {
        Bus celtixBus = null;
        try {
            Map<String, Object> properties = new WeakHashMap<String, Object>();
            properties.put("celtix.WSDLManager", new TuscanyWSDLManager(wsdlDefinitionRegistry));
            celtixBus = Bus.init(new String[0], properties);
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.Bus

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.