Download
FAQ History |
![]() ![]() ![]() |
API
Search Feedback |
SOAP with Attachments API for Java
Maydene Fisher and Kim Haase
SOAP with Attachments API for Java (SAAJ) is used mainly for the SOAP messaging that goes on behind the scenes in JAX-RPC and JAXR implementations. Secondarily, it is an API that developers can use when they choose to write SOAP messaging applications directly rather than using JAX-RPC. The SAAJ API allows you to do XML messaging from the Java platform: By simply making method calls using the SAAJ API, you can create, send, and consume XML messages over the Internet. This chapter will help you learn how to use the SAAJ API.
The SAAJ API conforms to the Simple Object Access Protocol (SOAP) 1.1 specification and the SOAP with Attachments specification. The SOAP with Attachments API for Java (SAAJ) 1.2 specification defines the
javax.xml.soap
package, which contains the API for creating and populating a SOAP message. This package has all the API necessary for sending request-response messages. (Request-response messages are explained in SOAPConnection Objects.)
Note: The
javax.xml.messaging
package, defined in the Java API for XML Messaging (JAXM) 1.1 specification, is not part of the Java Web Services Developer Pack and is not discussed in this chapter. The JAXM API is available as a separate download fromhttp://java.sun.com/xml/jaxm/
.
This chapter starts with an overview of messages and connections, which gives some of the conceptual background behind the SAAJ API to help you understand why certain things are done the way they are. Next the tutorial shows you how to use the basic SAAJ API, giving examples and explanations of the more commonly used features. The code examples in the last part of the tutorial show you how to build an application, and the case study in The Coffee Break Application includes SAAJ code for both sending and consuming a SOAP message.
Download
FAQ History |
![]() ![]() ![]() |
API
Search Feedback |
All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.