4.2. Outline for Handling XML Documents

An XML-based application, and in particular a Web service application, may consume or produce XML documents, and such an application may implement three distinct processing phases:

  1. The application consumes an XML document.

  2. The application applies its business logic on information retrieved from the document.

  3. The application produces an XML document for response.

Generally speaking, an XML-based application exposes an interface that is defined in terms of the schemas for the XML documents that it consumes and produces as well as by the communication or interaction policies of the application. In the case of a Web service, a Web Services Description Language (WSDL) document describes this interface, and this ...

Get Designing Web Services with the J2EE™ 1.4 Platform JAX-RPC, SOAP, and XML Technologies 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.