Package org.apache.axis

Examples of org.apache.axis.Message.writeTo()


        }
        if (httpChunkStream) {
            ChunkedOutputStream chunkedOutputStream = new ChunkedOutputStream(out);
            out = new BufferedOutputStream(chunkedOutputStream, Constants.HTTP_TXR_BUFFER_SIZE);
            try {
                reqMessage.writeTo(out);
            } catch (SOAPException e) {
                log.error(Messages.getMessage("exception00"), e);
            }
            out.flush();
            chunkedOutputStream.eos();
View Full Code Here


            try {
                if (!httpContinueExpected) {
                    out.write(header.toString()
                            .getBytes(HTTPConstants.HEADER_DEFAULT_CHAR_ENCODING));
                }
                reqMessage.writeTo(out);
            } catch (SOAPException e) {
                log.error(Messages.getMessage("exception00"), e);
            }
            // Flush ONLY once.
            out.flush();
View Full Code Here

        if (log.isDebugEnabled()) {
            log.debug(Messages.getMessage("xmlSent00"));
            log.debug("---------------------------------------------------");
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            try {
                reqMessage.writeTo(baos);
            } catch (SOAPException e) {
                log.error(Messages.getMessage("exception00"), e);
            }
            log.debug(header + new String(baos.toByteArray()));
        }
View Full Code Here

            Destination destination = message.getJMSReplyTo();
            if(destination == null)
                return;
            JMSEndpoint replyTo = listener.getConnector().createEndpoint(destination);
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            msg.writeTo(out);
            replyTo.send(out.toByteArray());
        }
        catch(Exception e)
        {
            e.printStackTrace();
View Full Code Here

                // OH, THE HUMILITY!  yes this is inefficient.
                out.write(cookieOut.toString().getBytes());
            }

            out.write(SEPARATOR);
            responseMsg.writeTo(out);
            // out.write(response);
            out.flush();
        } catch (Exception e) {
            log.debug(Messages.getMessage("exception00"), e);
        } finally {
View Full Code Here

        }
        if (httpChunkStream) {
            ChunkedOutputStream chunkedOutputStream = new ChunkedOutputStream(out);
            out = new BufferedOutputStream(chunkedOutputStream, 8 * 1024);
            try {
                reqMessage.writeTo(out);
            } catch (SOAPException e) {
                log.error(Messages.getMessage("exception00"), e);
            }
            out.flush();
            chunkedOutputStream.eos();
View Full Code Here

        } else {
            out = new BufferedOutputStream(out, 8 * 1024);
            try {
                out.write(header.toString()
                        .getBytes(HTTPConstants.HEADER_DEFAULT_CHAR_ENCODING));
                reqMessage.writeTo(out);
            } catch (SOAPException e) {
                log.error(Messages.getMessage("exception00"), e);
            }
            // Flush ONLY once.
            out.flush();
View Full Code Here

            addContextInfo(method, conn, state, msgContext, targetURL);
            Message reqMessage = msgContext.getRequestMessage();
            ByteArrayOutputStream baos = new ByteArrayOutputStream();

            reqMessage.writeTo(baos);
            method.setRequestBody(new String(baos.toByteArray()));
            method.execute(state, conn);
            int returnCode = method.getStatusCode();
            String contentType = null;
            String contentLocation = null;
View Full Code Here

        // log the request message
        if (Debug.verboseOn()) {
            try {
                StringOutputStream out = new StringOutputStream();
                msg.writeTo(out);
                Debug.logInfo("Request Message:\n" + out.toString() + "\n", module);
            } catch (Throwable t) {
            }
        }
View Full Code Here

        // log the response message
        if (Debug.verboseOn()) {
            try {
                StringOutputStream out = new StringOutputStream();
                msg.writeTo(out);
                Debug.log("Response Message:\n" + out.toString() + "\n", module);
            } catch (Throwable t) {
            }
        }
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.