Examples of ClientBinding


Examples of org.glassfish.jersey.server.ClientBinding

                this.configClass = ClientConfig.class;
                this.inheritProviders = true;
                this.baseUri = "";
            } else {
                this.annotation = annotation;
                final ClientBinding cba = annotation.annotationType().getAnnotation(ClientBinding.class);
                this.configClass = cba.configClass();
                this.inheritProviders = cba.inheritServerProviders();
                this.baseUri = cba.baseUri();
            }
        }
View Full Code Here

Examples of org.glassfish.jersey.server.ClientBinding

                this.configClass = ClientConfig.class;
                this.inheritProviders = true;
                this.baseUri = "";
            } else {
                this.annotation = annotation;
                final ClientBinding cba = annotation.annotationType().getAnnotation(ClientBinding.class);
                this.configClass = cba.configClass();
                this.inheritProviders = cba.inheritServerProviders();
                this.baseUri = cba.baseUri();
            }
        }
View Full Code Here

Examples of org.objectweb.celtix.bindings.ClientBinding

    }

    private  ClientBinding createClientBinding() {
        // TODO: Get bindingId from wsdl via the ref
        String bindingId = "http://schemas.xmlsoap.org/wsdl/soap/";
        ClientBinding binding = null;
        try {
            BindingFactory factory = bus.getBindingManager().getBindingFactory(bindingId);
            assert factory != null : "unable to find binding factory for " + bindingId;
            binding = factory.createClientBinding(ref);
        } catch (Exception ex) {
View Full Code Here

Examples of org.objectweb.celtix.bindings.ClientBinding

        return objMsgContext.getReturn();
    }   
   
    protected ClientBinding createBinding(EndpointReferenceType ref, Configuration c) {

        ClientBinding binding = null;
        try {
           
            String bindingId = c.getString("bindingId");
            BindingFactory factory = bus.getBindingManager().getBindingFactory(bindingId);
            assert factory != null : "unable to find binding factory for " + bindingId;
            binding = factory.createClientBinding(ref);
        } catch (Exception ex) {
            throw new WebServiceException(ex);
        }
       
        binding.configureSystemHandlers(c);
        return binding;
    }
View Full Code Here

Examples of org.objectweb.celtix.bindings.ClientBinding

        assertNotNull(wsdlUrl);
        QName serviceName = new QName("http://objectweb.org/hello_world_soap_http", "SOAPService");
        EndpointReferenceType address = EndpointReferenceUtils
            .getEndpointReference(wsdlUrl, serviceName, "SoapPort");
       
        ClientBinding clientBinding = factory.createClientBinding(address);
        assertNotNull(clientBinding);
        assertTrue(SOAPClientBinding.class.isInstance(clientBinding));
       
        SOAPClientBinding soapClientBinding = (SOAPClientBinding)clientBinding;
        Binding b = soapClientBinding.getBinding();
View Full Code Here

Examples of org.objectweb.celtix.bindings.ClientBinding

    public void testCreateClientTransport() throws Exception {
       
        QName serviceName = new QName("", "foobar");
        EndpointReferenceUtils.setServiceAndPortName(endpointRef, serviceName, "SOAPPort");
       
        ClientBinding clientBinding = EasyMock.createMock(ClientBinding.class);
        ResponseCallback responseCallback = EasyMock.createMock(ResponseCallback.class);
        clientBinding.createResponseCallback();
        EasyMock.expectLastCall().andReturn(responseCallback);
       
        EasyMock.replay(clientBinding);
       
        ClientTransport ct = factory.createClientTransport(endpointRef, clientBinding);
View Full Code Here

Examples of org.objectweb.celtix.bindings.ClientBinding

                "http://celtix.objectweb.org/bindings/xmlformat");
        assertNotNull(factory);
       
        EndpointReferenceType address = testUtils.getEndpointReference();
       
        ClientBinding clientBinding = factory.createClientBinding(address);
        assertNotNull(clientBinding);
        assertTrue(XMLClientBinding.class.isInstance(clientBinding));
       
        XMLClientBinding xmlClientBinding = (XMLClientBinding)clientBinding;
        Binding b = xmlClientBinding.getBinding();
View Full Code Here

Examples of org.objectweb.celtix.bindings.ClientBinding

        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));
       
        CorbaClientBinding clientBinding = (CorbaClientBinding)cb;
        Binding binding = clientBinding.getBinding();
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.