Name

SOAPPart

Synopsis

public abstract class SOAPPart {
// Public Constructors
    public SOAPPart(  ); 
// Property Accessor Methods (by property name)
    public abstract Iterator getAllMimeHeaders(  ); 
    public abstract javax.xml.transform.Source getContent(  ) 
       throws SOAPException; 
    public abstract void setContent(javax.xml.transform.Source source) 
       throws SOAPException; 
    public String getContentId(  ); 
    public void setContentId( String contentId); 
    public String getContentLocation(  ); 
    public void setContentLocation(String contentLocation); 
    public abstract SOAPEnvelope getEnvelope(  ) throws SOAPException; 
// Public Instance Methods
    public abstract void addMimeHeader(String name, String value); 
    public abstract Iterator getMatchingMimeHeaders(String[ ] names); 
    public abstract String[ ] getMimeHeader(String name); 
    public abstract Iterator getNonMatchingMimeHeaders(String[ ] names); 
    public abstract void removeAllMimeHeaders(  ); 
    public abstract void removeMimeHeader( String header); 
    public abstract void setMimeHeader(String name, String value); 
}

SOAPPart is a container that wraps the envelope of a SOAP message. To get a reference to the SOAPPart, use the getSOAPPart( ) method of the containing SOAPMessage. Aside from getEnvelope( ), all of the methods of the SOAPPart interface are concerned with manipulating its associated MIME headers, which are used only if the SOAP message has one or more MIME attachments. Refer to the reference section for AttachmentPart, earlier in this chapter for a description ...

Get Java Web Services in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.