SOAP with Attachments API for JavaTM
Sample Applications

Specification Version: 1.2
Reference Implementation (RI) Version: 1.2

List of Sample Apps

saaj-simple
This sample application demonstrates how to send a simple SOAPMessage from a sender (servlet) to a receiver (servlet). This shows a simple round trip message; the receiver responds with a reply. The messages appear in the directory from which you started Tomcat.
 
saaj-book
This sample web application demonstrates how to create and send a SOAPMessage from a sender (servlet) to a receiver (servlet). This sample demonstrates how a DOM document can be used in conjunction with SAAJ. A DOM document is created from information read from an XML file, and the content is added to the body of a message. The messages appear in the directory from which you started Tomcat.
 
saaj-translator
This sample uses Altavista's babelfish translation service to translate text. The text to be translated is sent within a SOAPMessage to the 'TranslationService'.

The TranslationService, in turn, talks to babelfish.altavista.com, making an HTTP connection, and extracts the translations of the input text string from the response. The text is translated into German, Italian, and French.

The translations can be returned either as attachments to a SAAJ message or within the SOAPBody, depending on which option is chosen through the radio button from the application's index.html. If using a proxy, the proxy settings (both host and port) need to be entered.

 
saaj/samples/uddiping
This sample application is a real-time application that talks to a live UDDI registry. It sends a SOAPMessage query to the registry and prints out the message response using the SAAJ API.

Instructions for running this sample are in a README file in the uddiping directory.