Code example for PrintStream

Methods: PrintStream.println, println

0
            smc.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
 
        if (outboundProperty.booleanValue()) {
            out.println("\nOutbound message:");
        } else { 
            out.println("\nInbound message:");
        } 
 
        SOAPMessage message = smc.getMessage();
        try { 
            message.writeTo(out);
            out.println();
        } catch (Exception e) {
            out.println("Exception in handler: " + e);
        } 
    } 
}