Package org.codehaus.xfire.service

Examples of org.codehaus.xfire.service.Endpoint


                                                  service);
        service.addBinding(binding);
        binding.setStyle(SoapConstants.STYLE_WRAPPED);
        binding.setSerializer(AbstractSoapBinding.getSerializer(SoapConstants.STYLE_WRAPPED,
                                                                SoapConstants.USE_LITERAL));
        Endpoint endpoint = new Endpoint(new QName("SoapEndpoint"),
                                         binding,
                                         "xfire.local://XFireNamespaceProblemService");
        service.addEndpoint(endpoint);
       
        getServiceRegistry().register(service);
View Full Code Here


        assertEquals(4, service.getBindings().size());
        assertNotNull(service.getBinding(SoapHttpTransport.SOAP11_HTTP_BINDING));
        assertNotNull(service.getBinding(SoapHttpTransport.SOAP12_HTTP_BINDING));
       
        assertEquals(1, service.getEndpoints().size());
        Endpoint ep = (Endpoint) service.getEndpoints().iterator().next();
        assertNotNull(ep);
        assertEquals("http://localhost/TestService", ep.getUrl());
       
        assertEquals(3, service.getInHandlers().size());
        Handler testHandler = (Handler) service.getInHandlers().get(2);
        assertTrue(testHandler instanceof TestHandler);
        assertEquals(testHandler.getAfter().size(),1);
View Full Code Here

        assertNotNull(part);
       
        Collection endpoints = service.getEndpoints();
        assertEquals(1, endpoints.size());
       
        Endpoint endpoint = (Endpoint) endpoints.iterator().next();
        assertEquals(new QName("urn:Echo", "EchoHttpPort"), endpoint.getName());
        assertNotNull(endpoint.getBinding());
        assertEquals("http://localhost:8080/xfire/services/Echo", endpoint.getUrl());
    }
View Full Code Here

        assertEquals("", soapOp.getSoapAction(opInfo));
       
        Collection endpoints = service.getEndpoints();
        assertEquals(1, endpoints.size());
       
        Endpoint endpoint = (Endpoint) endpoints.iterator().next();
        assertEquals(new QName("urn:Echo", "EchoHttpPort"), endpoint.getName());
        assertNotNull(endpoint.getBinding());
        assertEquals("http://localhost:8080/xfire/services/Echo", endpoint.getUrl());
    }
View Full Code Here

        assertEquals(new QName("urn:Echo:schema", "text"), part.getName());

        Collection endpoints = service.getEndpoints();
        assertEquals(1, endpoints.size());
       
        Endpoint endpoint = (Endpoint) endpoints.iterator().next();
        assertEquals(new QName("urn:Echo", "EchoHttpPort"), endpoint.getName());
        assertEquals(SoapHttpTransport.SOAP11_HTTP_BINDING, endpoint.getBinding().getBindingId());
        assertEquals("http://localhost:8080/xfire/services/Echo", endpoint.getUrl());
    }
View Full Code Here

    {
        WSDLServiceBuilder builder = new WSDLServiceBuilder(definition);
        builder.setTransportManager(xfire.getTransportManager());
        builder.build();
       
        Endpoint ep = findEndpoint(binding, builder.getAllServices());
       
        this.url = ep.getUrl();
        this.binding = ep.getBinding();
        this.transport = getXFire().getTransportManager().getTransport(binding);
       
        if (serviceClass != null)
        {
            ep.getBinding().getService().getServiceInfo().setServiceClass(serviceClass);
        }
       
        setService(ep.getBinding().getService());
    }
View Full Code Here

        {
            Service service = (Service) itr.next();
           
            for (Iterator eitr = service.getEndpoints().iterator(); eitr.hasNext();)
            {
                Endpoint ep = (Endpoint) eitr.next();
               
                if (ep.getBinding().getBindingId().equals(binding))
                {
                    return ep;
                }
            }
        }
View Full Code Here

        org.codehaus.xfire.service.Binding binding =
            getService().getBinding(port.getBinding().getQName());

        if (binding != null)
        {
            Endpoint ep = new Endpoint(new QName(getService().getTargetNamespace(),
                                                 port.getName()),
                                       binding,
                                       add.getLocationURI());
           
            getService().addEndpoint(ep);
View Full Code Here

            if (endpoints == null)
                continue;

            for (Iterator eitr = endpoints.iterator(); eitr.hasNext();)
            {
                Endpoint ep = (Endpoint) eitr.next();

                port = binding.createPort(ep, this, wbinding);
                if (port != null)
                {
                    wsdlService.addPort(port);
View Full Code Here

     * @throws Exception
     */
    public Endpoint createEndpoint(Service service, QName name, String url, Binding binding)
        throws Exception
    {
        Endpoint endpoint = service.addEndpoint(name, binding, url);
       
        getTransportManager().getTransport(binding.getBindingId()).createChannel(url);
       
        return endpoint;
    }
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.service.Endpoint

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.