Java API for XML Messaging

Developers can create and send XML messages over the internet using the JAXM API.

The SAAJ API provides the AttachmentPart class for attachments in SOAP messages.

[4] The JAXM API provides the class and interface to represent two kinds of connections: A SOAPConnection is a point-to-point connection for sending messages directly to a remote party.

[5] A SOAPConnection object, which represents a point-to-point connection, is simple to create and use.

You do not have to do any configuration to use a SOAPConnection object because it does not need to run in a servlet container (like Tomcat) or in a J2EE server.

The following figure presents a conceptual relationship between JAXM and other architectural elements required in web-based, business-to-business messaging.