Package org.codehaus.xfire.transport

Examples of org.codehaus.xfire.transport.Channel.receive()


        JBIContext.setMessageExchange(exchange);
        if (isInAndOut(exchange)) {
            // TODO ?
        }
        try {
            c.receive(ctx, msg);
        } finally {
            JBIContext.setMessageExchange(null);
            EndpointDeliveryChannel.setEndpoint(null);
        }
        c.close();
View Full Code Here


                ByteArrayOutputStream buffer = new ByteArrayOutputStream();
                TransformerFactory.newInstance().newTransformer().transform(in.getContent(), new StreamResult(buffer));
                xmlStreamReader = XMLInputFactory.newInstance().createXMLStreamReader(new ByteArrayInputStream(buffer.toByteArray()));
            }
            msg.setXMLStreamReader(xmlStreamReader);
            c.receive(ctx, msg);
           
            // Set response or DONE status
            if (isInAndOut(me)) {
                NormalizedMessage outMsg = me.createMessage();
                outMsg.setContent(new BytesSource(out.toByteArray()));
View Full Code Here

            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());
            marshaler.toNMS(outMessage, context.getOutMessage());
View Full Code Here

            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

                DataHandler dh = in.getAttachment(name);
                attachments.addPart(new SimpleAttachment(name, dh));
            }
            msg.setAttachments(attachments);
        }
        c.receive(ctx, msg);
        c.close();
       
        // Set response or DONE status
        if (isInAndOut(exchange)) {
            if (ctx.getExchange().hasFaultMessage() && ctx.getExchange().getFaultMessage().getBody() != null) {
View Full Code Here

        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);
    }

    public XFire getXfire() {
View Full Code Here

        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());
        marshaler.toNMS(outMessage, context.getOutMessage());
View Full Code Here

        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());
        marshaler.toNMS(outMessage, context.getOutMessage());
View Full Code Here

        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);
    }

    public XFire getXfire() {
View Full Code Here

        JBIContext.setMessageExchange(exchange);
        if (isInAndOut(exchange)) {
           
        }
        try {
            c.receive(ctx, msg);
        } finally {
            JBIContext.setMessageExchange(null);
            EndpointDeliveryChannel.setEndpoint(null);
        }
        c.close();
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.