Package org.codehaus.xfire.exchange

Examples of org.codehaus.xfire.exchange.OutMessage


        StaxBuilder builder = new StaxBuilder();
        Document doc = builder.build(getResourceAsStream("/org/codehaus/xfire/transport/jms/echo.xml"));

        MessageContext mc = new MessageContext();

        OutMessage msg = new OutMessage(peer2);
        msg.setSerializer(new JDOMSerializer());
        msg.setBody(doc);

        channel1.send(mc, msg);
        channel1.send(mc, msg);
       
        Thread.sleep(1000);
View Full Code Here


        StaxBuilder builder = new StaxBuilder();
        Document doc = builder.build(getResourceAsStream("/org/codehaus/xfire/xmpp/echo.xml"));

        MessageContext context = new MessageContext();

        OutMessage msg = new OutMessage(id + "/" + peer2);
        msg.setSerializer(new SoapSerializer(new JDOMSerializer()));
        msg.setBody(doc);

        channel1.send(context, msg);
       
        for (int i = 0; i < 100; i++)
        {
View Full Code Here

        StaxBuilder builder = new StaxBuilder();
        Document doc = builder.build(getResourceAsStream("/org/codehaus/xfire/xmpp/echo.xml"));
       
        MessageContext context = new MessageContext();

        OutMessage msg = new OutMessage(id + "/Echo");
        msg.setSerializer(new SoapSerializer(new JDOMSerializer()));
        msg.setBody(doc);

        channel1.send(context, msg);

        for (int i = 0; i < 100; i++)
        {
View Full Code Here

        fault.addNamespace("m", "urn:test");

        ByteArrayOutputStream out = new ByteArrayOutputStream();

        OutMessage message = new OutMessage("urn:bleh");
        message.setBody(fault);
        XMLStreamWriter writer = STAXUtils.createXMLStreamWriter(out, "UTF-8",null);
        writer.writeStartDocument();
        writer.writeStartElement("soap", "Body", Soap12.getInstance().getNamespace());
        writer.setPrefix("soap", Soap12.getInstance().getNamespace());
        writer.writeNamespace("soap", Soap12.getInstance().getNamespace());
View Full Code Here

        fault.addNamespace("m", "urn:test");

        ByteArrayOutputStream out = new ByteArrayOutputStream();
       
        OutMessage message = new OutMessage("urn:bleh");
        message.setBody(fault);
       
        XMLStreamWriter writer = STAXUtils.createXMLStreamWriter(out, "UTF-8",null);
        writer.writeStartDocument();
        writer.writeStartElement("soap", "Body", Soap11.getInstance().getNamespace());
        writer.writeNamespace("soap", Soap11.getInstance().getNamespace());
View Full Code Here

        XFireFault fault = new XFireFault(new Exception());
        fault.setFaultCode(new QName("http:///test-uri", "test", "t"));
       
        ByteArrayOutputStream out = new ByteArrayOutputStream();
       
        OutMessage message = new OutMessage("urn:bleh");
        message.setBody(fault);
       
        XMLStreamWriter writer = STAXUtils.createXMLStreamWriter(out, "UTF-8",null);
        writer.writeStartDocument();
        writer.writeStartElement("soap", "Body", Soap11.getInstance().getNamespace());
        writer.writeNamespace("soap", Soap11.getInstance().getNamespace());
View Full Code Here

        XFireFault fault = new XFireFault(new Exception());
        fault.setFaultCode(new QName("http:///test-uri", "test", "t"));
       
        ByteArrayOutputStream out = new ByteArrayOutputStream();
       
        OutMessage message = new OutMessage("urn:bleh");
        message.setBody(fault);
       
        XMLStreamWriter writer = STAXUtils.createXMLStreamWriter(out, "UTF-8",null);
        writer.writeStartDocument();
        writer.writeStartElement("soap", "Body", Soap12.getInstance().getNamespace());
        writer.writeNamespace("soap", Soap12.getInstance().getNamespace());
View Full Code Here

    {

        AddressingHeaders inHeaders = (AddressingHeaders) context.getInMessage()
                .getProperty(AddressingInHandler.ADRESSING_HEADERS);
        data.setInHeaders(inHeaders);
        OutMessage msg = context.getOutMessage();
        AddressingHeaders headers = (AddressingHeaders) msg
                .getProperty(AddressingInHandler.ADRESSING_HEADERS);
        data.setOutHeaders(headers);

    }
View Full Code Here

        root.addContent("hello");
        Document doc = new Document(root);
       
        MessageContext context = new MessageContext();
       
        OutMessage msg = new OutMessage("urn:xfire:local://Peer2");
        msg.setSerializer(new JDOMSerializer());
        msg.setBody(doc);
       
        channel1.send(context, msg);
        channel1.send(context, msg);
       
        for (int i = 0; i < 10000; i++)
View Full Code Here

       
        WSS4JOutHandler handler = new WSS4JOutHandler();
       
        MessageContext ctx = new MessageContext();
   
        OutMessage msg = new OutMessage("");
        msg.setProperty(DOMOutHandler.DOM_MESSAGE, doc);
   
        ctx.setCurrentMessage(msg);
        ctx.setProperty(WSHandlerConstants.ACTION, WSHandlerConstants.SIGNATURE);
        ctx.setProperty(WSHandlerConstants.SIG_PROP_FILE, "META-INF/xfire/outsecurity.properties");
        ctx.setProperty(WSHandlerConstants.USER, "myAlias");
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.exchange.OutMessage

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.