SOAP with Attachments API for Java

SOAP with Attachments API for Java (SAAJ) is used for SOAP messaging that works behind the scenes in the Java API for XML-based remote procedure call (JAX-RPC) implementation.

WebSphere Application Server Version 5.0.2, 5.1 and 5.1.1 supports SAAJ V1.1.

Messages created using SAAJ follow SOAP standards. Many of the SAAJ classes and interfaces that represent XML elements in a SOAP message have the word element or SOAP, or both words, in their names.

The two main types of SOAP messages are messages with attachments and messages without attachments. SAAJ provides the SOAPMessages class to represent a SOAP message. The SOAPPart class represents the SOAP part and the SOAPEnvelope interface represents the SOAP envelope. A SOAP message can also include one or more attachment parts in addition to the SOAP parts. The SOAP part must contain XML content only. If any of the message content is not in XML format, the content must occur in an attachment part. SAAJ provides the AttachmentPart class to represent the attachment part of a SOAP message.

To review the entire SAAJ API, see Web services: Resources for learning.