public class SOAPMessageUtils
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SOAPMessageUtils.ByteArrayDataSource  | 
| Constructor and Description | 
|---|
SOAPMessageUtils()  | 
| Modifier and Type | Method and Description | 
|---|---|
static org.w3c.dom.Element | 
addChildElementWithBinaryContent(org.w3c.dom.Element parent, java.lang.String localName, java.lang.String prefix, java.lang.String uri, byte[] value, boolean useLineBreaks)
MTOM aware method to create a child Element under the parent Element with the specified prefix, localname and uri, and create a text node under the child element containing the byte array as a base 64 encoded string. 
 | 
static java.io.InputStream | 
getBinaryContentForChildElement(org.w3c.dom.Element elem)  | 
static org.w3c.dom.Node | 
importSoapElementNode(org.w3c.dom.Document doc, org.w3c.dom.Node importNode)
RH Import/Add soapNode to Document through either SOAPFactory.createElement (SAAJ 1.3 API) or importNode (DOM API) ImportNode is not implemented in JBOSS Saaj 
 | 
static javax.xml.soap.MimeHeaders | 
readHeaders(java.io.InputStream is)
Read the Mime headers and position the InputStrea to just after the headers 
 | 
static void | 
writeTo(javax.xml.soap.SOAPMessage msg, java.io.OutputStream out)
Wrapper over  
SOAPMessage.writeTo(OutputStream) to write out the headers as well as the body. | 
public static org.w3c.dom.Element addChildElementWithBinaryContent(org.w3c.dom.Element parent,
                                                   java.lang.String localName,
                                                   java.lang.String prefix,
                                                   java.lang.String uri,
                                                   byte[] value,
                                                   boolean useLineBreaks)
                                                            throws org.w3c.dom.DOMException
parent -localName -prefix -uri -value -org.w3c.dom.DOMExceptionpublic static java.io.InputStream getBinaryContentForChildElement(org.w3c.dom.Element elem)
public static void writeTo(javax.xml.soap.SOAPMessage msg,
           java.io.OutputStream out)
                    throws java.io.IOException,
                           javax.xml.soap.SOAPException
SOAPMessage.writeTo(OutputStream) to write out the headers as well as the body.msg - The SOAPMessage that needs to be written outout - where it is to be writtenjava.io.IOExceptionjavax.xml.soap.SOAPException
public static javax.xml.soap.MimeHeaders readHeaders(java.io.InputStream is)
                                              throws java.io.IOException
is -java.io.IOException
public static org.w3c.dom.Node importSoapElementNode(org.w3c.dom.Document doc,
                                     org.w3c.dom.Node importNode)
                                              throws XEException
Document, - importNodeXEException