Code Examples

The first part of this tutorial uses code fragments to walk you through the fundamentals of using the SAAJ API. In this section, you will use some of those code fragments to create applications. First, you will see the program Request.java. Then you will see how to run the programs MyUddiPing.java, HeaderExample.java, DOMExample.java, DOMSrcExample.java, Attachments.java, and SOAPFaultTest.java.

You do not have to start the Sun Java System Application Server Platform Edition 8 in order to run these examples.

Request.java

The class Request.java puts together the code fragments used in the section Tutorial (page 345) and adds what is needed to make it a complete example of a client sending a request-response message. In addition to ...

Get The J2EE™ Tutorial Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.