Examples of createChannel()


Examples of org.codehaus.xfire.transport.Transport.createChannel()

    {
        Transport t = getTransportManager().getTransport(LocalTransport.BINDING_ID);
       
        assertTrue( t instanceof LocalTransport );
       
        Channel channel = t.createChannel();
       
        assertTrue( channel instanceof LocalChannel );
    }
   
    public void testMessages() throws Exception
View Full Code Here

Examples of org.codehaus.xfire.transport.Transport.createChannel()

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

Examples of org.codehaus.xfire.transport.Transport.createChannel()

   
    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

Examples of org.codehaus.xfire.transport.Transport.createChannel()

        // 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

Examples of org.codehaus.xfire.transport.Transport.createChannel()

                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

Examples of org.codehaus.xfire.transport.Transport.createChannel()

            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

Examples of org.codehaus.xfire.transport.Transport.createChannel()

            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

Examples of org.codehaus.xfire.transport.Transport.createChannel()

        // 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

Examples of org.codehaus.xfire.transport.local.LocalTransport.createChannel()

    extends AbstractXFireTest
{
    public void testPeer1() throws Exception
    {
        LocalTransport transport = new LocalTransport();
        Channel channel1 = transport.createChannel("urn:xfire:local://Peer1");
        channel1.open();
       
        Channel channel2 = transport.createChannel("urn:xfire:local://Peer2");
        JDOMEndpoint endpoint = new JDOMEndpoint();
        channel2.setEndpoint(endpoint);
View Full Code Here

Examples of org.codehaus.xfire.transport.local.LocalTransport.createChannel()

    {
        LocalTransport transport = new LocalTransport();
        Channel channel1 = transport.createChannel("urn:xfire:local://Peer1");
        channel1.open();
       
        Channel channel2 = transport.createChannel("urn:xfire:local://Peer2");
        JDOMEndpoint endpoint = new JDOMEndpoint();
        channel2.setEndpoint(endpoint);

        // Document to send
        Element root = new Element("root");
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.