- saaj-simple
This sample application demonstrates how to send a simple
SOAPMessagefrom 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 the Web container.- saaj-book
This sample Web application demonstrates how to create and send a
SOAPMessagefrom 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 the Web container.- saaj-translator
This sample uses Altavista's babelfish translation service to translate text. The text to be translated is sent within a
SOAPMessageto 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'sindex.htmlfile. If you use 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
SOAPMessagequery 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
uddipingdirectory.- saaj/samples/soapprocessor
This sample provides an API that implements a
SOAPProcessorobject, which implements the processing model described in The SOAP Message Exchange Model. The sample consists of a JAR file, which can be used by other sample applications, and the associated source code.For more information about this sample, see the README file in the
soapprocessordirectory.