Package org.objectweb.celtix.ws.addressing

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType


        BindingManager manager = bus.getBindingManager();
        CorbaBindingFactory corbaBF = new CorbaBindingFactory();
        corbaBF.init(bus);
        manager.registerBinding(CorbaConstants.NU_WSDL_CORBA, corbaBF);
       
        EndpointReferenceType endpoint = testUtils.getSimpleTestEndpointReference();
        AddressType address = CorbaUtils.getCorbaAddressType(bus, endpoint);
        assertNotNull(address);                  
    }
View Full Code Here


        BindingManager manager = bus.getBindingManager();
        CorbaBindingFactory corbaBF = new CorbaBindingFactory();
        corbaBF.init(bus);
        manager.registerBinding(CorbaConstants.NU_WSDL_CORBA, corbaBF);
       
        EndpointReferenceType endpoint = testUtils.getSimpleTestEndpointReference();
        BindingType binding = CorbaUtils.getCorbaBindingType(bus, endpoint);
        assertNotNull(binding);
    }
View Full Code Here

        BindingManager manager = bus.getBindingManager();
        CorbaBindingFactory corbaBF = new CorbaBindingFactory();
        corbaBF.init(bus);
        manager.registerBinding(CorbaConstants.NU_WSDL_CORBA, corbaBF);
       
        EndpointReferenceType endpoint = testUtils.getSimpleTestEndpointReference();
        String opName = "testSimpleMethod";
        OperationType operation = CorbaUtils.getCorbaOperationType(opName, bus, endpoint);
        assertNotNull(operation);
    }
View Full Code Here

        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);
        assertTrue(CorbaClientBinding.class.isInstance(cb));
       
View Full Code Here

        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);
        assertTrue(CorbaServerBinding.class.isInstance(sb));
       
View Full Code Here

            throw new CeltixServiceInitException(e);
        }

        QName qName = wsdlService.getQName();
        String portName = port.getName();
        EndpointReferenceType reference = EndpointReferenceUtils.getEndpointReference(url,qName,portName);

        AttributedURIType address = new AttributedURIType();

        String bindingId = null;
        Binding binding = port.getBinding();
        if (null != binding) {
            List list = binding.getExtensibilityElements();
            if (!list.isEmpty()) {
                bindingId = ((ExtensibilityElement) list.get(0)).getElementType().getNamespaceURI();
            }
        }
        List<?> list = port.getExtensibilityElements();
        for (Object ep : list) {
            ExtensibilityElement ext = (ExtensibilityElement) ep;
            if (ext instanceof SOAPAddress) {
                if (bindingId == null) {
                    bindingId = ((SOAPAddress) ext).getLocationURI();
                }
                address.setValue(((SOAPAddress) ext).getLocationURI());
            }
            if (ext instanceof AddressType) {
                if (bindingId == null) {
                    bindingId = ((AddressType) ext).getLocation();
                }
                address.setValue(((AddressType) ext).getLocation());
            }
        }
        if (reference.getAddress() == null) {
            //REVIST - bug in Celtix that the HTTP transport won't find the address correctly
            reference.setAddress(address);
        }
        ClassLoader previousLoader = null;
        try {
            //FIXME: This hack is because SAAJImpl uses Thread.currentThread().getContextClassLoader(),
            //this classloader is different from current classLoader.
View Full Code Here

        try {
            String key = wsdlDef.getDocumentBaseURI();
            URL url = new URL(key);

            QName qName = wsdlService.getQName();
            EndpointReferenceType reference = EndpointReferenceUtils.getEndpointReference(url, qName, port.getName());

            String bindingId = null;
            Binding binding = port.getBinding();
            if (null != binding) {
                List list = binding.getExtensibilityElements();
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.ws.addressing.EndpointReferenceType

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.