| Package | Description | 
|---|---|
| javax.xml.soap | Provides the API for creating and building SOAP messages. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract AttachmentPart | SOAPMessage. createAttachmentPart()Creates a new empty  AttachmentPartobject. | 
| AttachmentPart | SOAPMessage. createAttachmentPart(DataHandler dataHandler)Creates an  AttachmentPartobject and populates it using
 the givenDataHandlerobject. | 
| AttachmentPart | SOAPMessage. createAttachmentPart(Object content,
                    String contentType)Creates an  AttachmentPartobject and populates it with
 the specified data of the specified content type. | 
| abstract AttachmentPart | SOAPMessage. getAttachment(SOAPElement element)Returns an  AttachmentPartobject that is associated with an
 attachment that is referenced by thisSOAPElementornullif no such attachment exists. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | SOAPMessage. addAttachmentPart(AttachmentPart AttachmentPart)Adds the given  AttachmentPartobject to thisSOAPMessageobject. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.