O'Reilly logo

Java Web Services in a Nutshell by Kim Topley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

SOAPMessage

Synopsis

public abstract class SOAPMessage {
// Public Constructors
    public SOAPMessage(  ); 
// Property Accessor Methods (by property name)
    public abstract Iterator getAttachments(  ); 
    public abstract Iterator getAttachments MimeHeaders headers); 
    public abstract String getContentDescription(  ); 
    public abstract void setContentDescription(String description); 
    public abstract MimeHeaders getMimeHeaders(  ); 
    public abstract SOAPPart getSOAPPart(  ); 
// Public Instance Methods
    public abstract void addAttachmentPart(AttachmentPart AttachmentPart); 
    public abstract int countAttachments(  ); 
    public abstract AttachmentPart createAttachmentPart(  ); 
    public AttachmentPart createAttachmentPart(javax.activation.DataHandler dataHandler); 
    public AttachmentPart createAttachmentPart(Object content, String contentType); 
    public abstract void removeAllAttachments(  ); 
    public abstract void saveChanges(  ) throws SOAPException; 
    public abstract boolean saveRequired(  ); 
    public abstract void writeTo( java.io.OutputStream out)
        throws SOAPExceptionjava.io.IOException; 
}

SOAPMessage is an abstract class that represents a complete SOAP message. A SOAPMessage object can be obtained from the createMessage( ) method of the MessageFactory class, and consists of several parts:

MIME headers

When a SOAP message is transmitted using a protocol such as HTTP or SMTP, it requires a set of MIME headers that specify, at a minimum, the type of the protocol payload and its length. In the case of a SOAP message with no ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required