Java APIs for XML Kick Start By Aoyon Chowdhury, Parag Choudhary
Table of Contents
Part III. JAXM: Java API for XML Messaging
Chapter 8. Creating Client Implementations
IN THIS CHAPTER
Standalone Client Implementation
Client with Messaging Provider
All communication in the Web services architecture is done through the exchange of XML documents that follow the SOAP and SOAP with Attachment specifications. JAXM provides the necessary APIs with which applications can create and process SOAP messages. As you learned in the previous chapter, there are two kinds of applications that use JAXM: applications that connect directly to the Web service and engage in a request response message exchange, and applications that use the messaging provider and engage in either request-response or one-way messaging.
In this chapter, you will learn how to create both of these types of applications. In the first section, you will learn how to create a standalone JAXM client that connects directly to a UDDI registry and gets information about companies registered with the registry.
In the second section, you will learn how to create a JAXM application that leverages the power of the messaging provider to create an ebXML message with an attachment and send it as a one-way message.