30 lines
2.2 KiB
HTML
30 lines
2.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
|
|
|
|
<title>SOAP with Attachments API for Java</title>
|
|
</head>
|
|
|
|
<BODY>
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
<h5><a name="wsaaj"></a>SOAP with Attachments API for Java</h5>
|
|
|
|
<p>SOAP with Attachments API for Java (SAAJ) is used for SOAP messaging that works behind the scenes in the Java API for XML-based RPC (JAX-RPC) implementation. You can also use this API to directly write SOAP messaging applications rather than using JAX-RPC. SAAJ allows you to do XML messaging from the Java platform by making method calls by creating, sending and consuming XML messages over the Internet.</p>
|
|
|
|
<p>WebSphere Application Server - Express Version 5.1 supports SAAJ Version 1.1.</p>
|
|
|
|
<p>Messages created using SAAJ follow SOAP standards. Many of the SAAJ classes and interfaces represent XML elements in a SOAP message and have the word element or SOAP, or both, in their names.</p>
|
|
|
|
<p>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 to represent the SOAP part; and the SOAPEnvelope interface to represent the SOAP envelope. A SOAP message can also include one or more attachment parts in addition to the SOAP part. The SOAP part must only contain XML content. If any of the message content is not in XML format, it must occur in an attachment part. SAAJ provides the AttachmentPart class to represent the attachment part of a SOAP message.</p>
|
|
|
|
<p>All SOAP messages are sent and received over a connection. When using SAAJ, the connection is represented by a SOAPConnection object, which goes directly from a sender to its destination. Messages sent using SAAJ are called request-response messages. The messages are sent over a SOAPConnection object with the method call, which sends a message (request) and blocks the request until it receives the reply (a response).</p>
|
|
|
|
<p>To review the entire SAAJ API, see <a href="wsrefs.htm">Web services resources</a>.</p>
|
|
|
|
</body>
|
|
</html>
|