background image

Java API for XML Processing

<< Java Message Service API | Java API for XML Registries >>
<< Java Message Service API | Java API for XML Registries >>

Java API for XML Processing

Java API for XML Processing
The Java API for XML Processing (JAXP), part of the Java SE platform, supports the processing
of XML documents using Document Object Model (DOM), Simple API for XML (SAX), and
Extensible Stylesheet Language Transformations (XSLT). JAXP enables applications to parse
and transform XML documents independent of a particular XML processing implementation.
JAXP also provides namespace support, which lets you work with schemas that might otherwise
have naming conflicts. Designed to be flexible, JAXP lets you use any XML-compliant parser or
XSL processor from within your application and supports the W3C schema. You can find
information on the W3C schema at this URL:
http://www.w3.org/XML/Schema
.
Java API for XML Web Services (JAX-WS)
The JAX-WS specification provides support for web services that use the JAXB API for binding
XML data to Java objects. The JAX-WS specification defines client APIs for accessing web
services as well as techniques for implementing web service endpoints. The Web Services for
J2EE specification describes the deployment of JAX-WS-based services and clients. The EJB and
servlet specifications also describe aspects of such deployment. It must be possible to deploy
JAX-WS-based applications using any of these deployment models.
The JAX-WS specification describes the support for message handlers that can process message
requests and responses. In general, these message handlers execute in the same container and
with the same privileges and execution context as the JAX-WS client or endpoint component
with which they are associated. These message handlers have access to the same JNDI
java:comp/env
namespace as their associated component. Custom serializers and deserializers,
if supported, are treated in the same way as message handlers.
Java Architecture for XML Binding (JAXB)
The Java Architecture for XML Binding (JAXB) provides a convenient way to bind an XML
schema to a representation in Java language programs. JAXB can be used independently or in
combination with JAX-WS, where it provides a standard data binding for web service messages.
All Java EE application client containers, web containers, and EJB containers support the JAXB
API.
SOAP with Attachments API for Java
The SOAP with Attachments API for Java (SAAJ) is a low-level API on which JAX-WS and
JAXR depend. SAAJ enables the production and consumption of messages that conform to the
SOAP 1.1 specification and SOAP with Attachments note. Most developers do not use the SAAJ
API, instead using the higher-level JAX-WS API.
Java EE 5 APIs
The Java EE 5 Tutorial · September 2007
60