Package org.codehaus.xfire.transport

Examples of org.codehaus.xfire.transport.Transport


    }
   
    public void testInvoke()
        throws Exception
    {
        Transport t = getXFire().getTransportManager().getTransport(LocalTransport.BINDING_ID);
        Channel channel = t.createChannel("xfire.local://EchoReceiver");
        JDOMEndpoint endpoint = new JDOMEndpoint();
        channel.setEndpoint(endpoint);
       
        Document response = invokeService((String)null, "/org/codehaus/xfire/addressing/ReplyTo.xml");
View Full Code Here


        }

        // TODO: clean this code
        XFire xfire = endpoint.getXFire();
        Service service = endpoint.getXFireService();
        Transport t = xfire.getTransportManager().getTransport(JbiTransport.JBI_BINDING);
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        Channel c = t.createChannel();
        MessageContext ctx = new MessageContext();
        ctx.setXFire(xfire);
        ctx.setService(service);
        ctx.setProperty(Channel.BACKCHANNEL_URI, out);
        ctx.setExchange(new org.codehaus.xfire.exchange.MessageExchange(ctx));
View Full Code Here

            NormalizedMessage in = me.getMessage("in");
            if (in == null) {
                throw new NoInMessageAvailableException(me);
            }
       
            Transport t = xfire.getTransportManager().getTransport(JbiTransport.JBI_BINDING);
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            Channel c = t.createChannel();
            MessageContext ctx = new MessageContext();
            ctx.setXFire(xfire);
            ctx.setService(service);
            ctx.setProperty(Channel.BACKCHANNEL_URI, out);
            InMessage msg = new InMessage();
View Full Code Here

        for (Iterator iter = services.iterator(); iter.hasNext();) {
            EndpointSpec es = (EndpointSpec) iter.next();
            Service svc = component.getFactory().create(es.getPojo().getClass());
            component.getXFire().getServiceRegistry().register(svc);
            component.getXFire().getTransportManager().disableAll(svc.getName());
            Transport jbiT = component.getXFire().getTransportManager().getTransport(JbiTransport.JBI_BINDING);
            component.getXFire().getTransportManager().enable(jbiT, svc.getName());
           
            QName serviceName = svc.getServiceInfo().getName();
            String endpointName = null;
           
View Full Code Here

            context.setService(xfire.getServiceRegistry().getService(getService().getLocalPart()));

            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            context.setProperty(Channel.BACKCHANNEL_URI, buffer);
           
            Transport transport =
                xfire.getTransportManager().getTransport(LocalTransport.BINDING_ID);
            Channel channel = transport.createChannel();
            channel.receive(context, in);

            NormalizedMessage outMessage = messageExchange.createMessage();

            marshaler.setContent(outMessage, buffer.toString());
View Full Code Here

            InMessage in = new InMessage(reader, "");
            MessageContext context = new MessageContext();
            context.setXFire(xfire);
            context.setService(xfire.getServiceRegistry().getService(getService().getLocalPart()));

            Transport transport =
                xfire.getTransportManager().getTransport(LocalTransport.BINDING_ID);
            Channel channel = transport.createChannel();
            channel.receive(context, in);

            done(messageExchange);
        } catch (Exception e) {
            fail(messageExchange, e);
View Full Code Here

        // TODO: fault should not be serialized as soap
        // TODO: clean this code
        XFire xfire = endpoint.getXFire();
        Service service = endpoint.getXFireService();
        Transport t = xfire.getTransportManager().getTransport(JbiTransport.JBI_BINDING);
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        Channel c = t.createChannel();
        MessageContext ctx = new MessageContext();
        ctx.setXFire(xfire);
        ctx.setService(service);
        ctx.setProperty(Channel.BACKCHANNEL_URI, out);
        ctx.setExchange(new org.codehaus.xfire.exchange.MessageExchange(ctx));
View Full Code Here

        InMessage in = new InMessage(reader, "");
        MessageContext context = new MessageContext();
        context.setXFire(xfire);
        context.setService(xfire.getServiceRegistry().getService(getService().getLocalPart()));

        Transport transport = xfire.getTransportManager().getTransport(LocalTransport.BINDING_ID);
        Channel channel = transport.createChannel();
        channel.receive(context, in);

        done(messageExchange);
    }
View Full Code Here

        context.setService(xfire.getServiceRegistry().getService(getService().getLocalPart()));

        ByteArrayOutputStream buffer = new ByteArrayOutputStream();
        context.setProperty(Channel.BACKCHANNEL_URI, buffer);
       
        Transport transport =  xfire.getTransportManager().getTransport(LocalTransport.BINDING_ID);
        Channel channel = transport.createChannel();
        channel.receive(context, in);

        NormalizedMessage outMessage = messageExchange.createMessage();

        marshaler.setContent(outMessage, buffer.toString());
View Full Code Here

        context.setService(xfire.getServiceRegistry().getService(getService().getLocalPart()));

        ByteArrayOutputStream buffer = new ByteArrayOutputStream();
        context.setProperty(Channel.BACKCHANNEL_URI, buffer);
       
        Transport transport =  xfire.getTransportManager().getTransport(LocalTransport.BINDING_ID);
        Channel channel = transport.createChannel();
        channel.receive(context, in);

        NormalizedMessage outMessage = messageExchange.createMessage();

        marshaler.setContent(outMessage, buffer.toString());
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.transport.Transport

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.