Java SOAP Message printSOAPMessage(SOAPMessage msg, String titol)

Here you can find the source of printSOAPMessage(SOAPMessage msg, String titol)

Description

print SOAP Message

License

Open Source License

Declaration

public static void printSOAPMessage(SOAPMessage msg, String titol)
        throws SOAPException, IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.ByteArrayOutputStream;

import java.io.IOException;

import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;

public class Main {

    public static void printSOAPMessage(SOAPMessage msg, String titol)
            throws SOAPException, IOException {
        ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();
        msg.writeTo(byteArrayOS);/* w w  w . jav a  2s.co  m*/
        System.out.println("*******************************");
        System.out.println(titol);
        System.out.println("-------------------------------");
        System.out.println(new String(byteArrayOS.toByteArray()));
        System.out.println("*******************************");
    }
}

Related

  1. isSOAP12(SOAPMessage soapMessage)
  2. isSOAP12(SOAPMessage soapMessage)
  3. isSOAPFault(SOAPMessage messageSOAP)
  4. printMessage(SOAPMessageContext smc)
  5. printSoapFaultException(SOAPFaultException sfe)
  6. printTree(NodeList childNodes, String padding, ByteArrayOutputStream byteArrayOS)
  7. saveMimeHeaders(SOAPMessage msg, String fileName)
  8. toByteArray(SOAPMessage soapMessage)
  9. toPrettyString(SOAPMessage response)