Package org.apache.cxf.binding.soap.tcp.frames

Examples of org.apache.cxf.binding.soap.tcp.frames.SoapTcpMessage


            + (max + 1)
            + "</channelId><negotiatedMimeTypes xmlns=\"\">"
            + "application/soap+xml</negotiatedMimeTypes><negotiatedParams xmlns=\"\">charset</negotia"
            + "tedParams><negotiatedParams xmlns=\"\">SOAPAction</negotiatedParams><negotiatedParams xm"
            + "lns=\"\">action</negotiatedParams></openChannelResponse></s:Body></s:Envelope>";
        SoapTcpMessage soapTcpMessage = SoapTcpMessage.createSoapTcpMessage(response, 0);
        IoBuffer buffer = IoBuffer.allocate(512);
        buffer.setAutoExpand(true);
        try {
            SoapTcpUtils.writeSoapTcpMessage(buffer.asOutputStream(), soapTcpMessage);
        } catch (IOException e) {
View Full Code Here


       
        String response = "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">"
            + "<s:Body><closeChannelResponse xmlns=\"http://servicechannel.tcp.transport.ws.xml.sun.com/\""
            + " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/"
            + "XMLSchema\"/></s:Body></s:Envelope>";
        SoapTcpMessage soapTcpMessage = SoapTcpMessage.createSoapTcpMessage(response, 0);
        IoBuffer buffer = IoBuffer.allocate(512);
        buffer.setAutoExpand(true);
        try {
            SoapTcpUtils.writeSoapTcpMessage(buffer.asOutputStream(), soapTcpMessage);
        } catch (IOException e) {
View Full Code Here

public class SoapTcpMessageEncoder extends ProtocolEncoderAdapter {

    public void encode(IoSession session, Object obj, ProtocolEncoderOutput out) throws Exception {
        if (obj instanceof SoapTcpMessage) {
           
            SoapTcpMessage msg = (SoapTcpMessage)obj;
            IoBuffer buffer = IoBuffer.allocate(1024);
            buffer.setAutoExpand(true);
            OutputStream outStream = buffer.asOutputStream();
            SoapTcpUtils.writeSoapTcpMessage(outStream, msg);
            outStream.close();
View Full Code Here

    public void close(Message msg) throws IOException {
        ByteArrayOutputStream baos = (ByteArrayOutputStream)msg.getContent(OutputStream.class);
        Exchange exchange = msg.getExchange();
        SoapTcpChannel channel = exchange.getInMessage().getContent(SoapTcpChannel.class);
        String message = new String(baos.toByteArray());
        SoapTcpMessage soapTcpMessage = SoapTcpMessage.createSoapTcpMessage(message, channel.getChannelId());
        IoBuffer buffer = IoBuffer.allocate(512);
        buffer.setAutoExpand(true);
        SoapTcpUtils.writeSoapTcpMessage(buffer.asOutputStream(), soapTcpMessage);
        buffer.flip();
        session.write(buffer);
View Full Code Here

TOP

Related Classes of org.apache.cxf.binding.soap.tcp.frames.SoapTcpMessage

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.