Package org.objectweb.celtix.bus.configuration.wsdl

Examples of org.objectweb.celtix.bus.configuration.wsdl.WsdlPortProvider


            try  {
                port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), ref);
            } catch (WSDLException ex) {
                throw new WebServiceException("Could not get port from wsdl", ex);
            }
            portConfiguration.getProviders().add(new WsdlPortProvider(port));
        }       
        return portConfiguration;
    }
View Full Code Here


        try  {
            port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), ref);
        } catch (WSDLException ex) {
            throw new WebServiceException("Could not get port from wsdl", ex);
        }
        portCfg.getProviders().add(new WsdlPortProvider(port));
        return portCfg;
    }
View Full Code Here

        public TestRouter(ClassLoader loader, Definition model, RouteType rt) {
            super(loader, model, rt);
        }

        public boolean testIsSameBindingId(Port p) {
            WsdlPortProvider provider = new WsdlPortProvider(p);
            return super.isSameBindingId((String) provider.getObject("bindingId"));
        }
View Full Code Here

       
        List<Source> metadata = createMetadata();
        for (SourceType st : stList) {
            //TODO Config For Pass Through
            Port p = sourcePortMap.get(st.getService());
            WsdlPortProvider portProvider = new WsdlPortProvider(p);
            String srcBindingId = (String) portProvider.getObject("bindingId");
            Object implementor = null;
            if (isSameBindingId(srcBindingId)) {
                //Pass Through Mode
                implementor = new StreamSourceMessageProvider(wsdlModel, route);
            } else {
View Full Code Here

    }

    public void publish() {
        for (Endpoint ep : epList) {
            Port port = (Port) sourcePortMap.get(ep.getProperties().get(Endpoint.WSDL_SERVICE));
            WsdlPortProvider portProvider = new WsdlPortProvider(port);
            ep.publish((String) portProvider.getObject("address"));
        }
    }
View Full Code Here

    }
   
    protected boolean isSameBindingId(String srcId) {       
        Collection<Port> destPorts = destPortMap.values();
        for (Port destPort : destPorts) {
            WsdlPortProvider portProvider = new WsdlPortProvider(destPort);
            String destId = (String) portProvider.getObject("bindingId");
           
            if (null == srcId
                && null == destId
                || srcId.equals(destId)) {
                continue;
View Full Code Here

        ConfigurationBuilder cb = ConfigurationBuilderFactory.getBuilder(null);
        portCfg = cb.buildConfiguration(PORT_CONFIGURATION_URI, id, bus.getConfiguration());
       
        Port port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), ref);
        assertNotNull(port);
        portCfg.getProviders().add(new WsdlPortProvider(port));
        return portCfg;
    }
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.bus.configuration.wsdl.WsdlPortProvider

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.