Java provides two packages that allow SOAP messages to be manipulated. The most commonly used package is the javax.xml.soap package, which contains the core classes for creating and manipulating messages. The packages and their classes are described in Table 22-2 and Table 22-3.
|javax.xml.messaging||Used to manage one-way (message server) messaging with SOAP messages.|
|javax.xml.soap||Used for the creation and transmission of SOAP messages|
The javax.xml.soap package contains some of the core classes to create and manipulate SOAP messages. These classes are shown in Table 22-3 below.
|AttachmentPart||Represents an attachment for a SOAP message.|