09-08-2012, 12:00 PM
The Java™ Web Services Tutorial
JavaWSTutorial.pdf (Size: 2.52 MB / Downloads: 59)
About This Tutorial
THE Java™ Web Services Tutorial is a guide to developing Web applications
with the Java Web Services Developer Pack (Java WSDP). The Java WSDP is an
all-in-one download containing key technologies to simplify building of Web
services using the Java 2 Platform. This tutorial requires a full installation (Typical,
not Custom) of the Java WSDP, v1.6 with the Sun Java System Application
Server Platform Edition 8.1 2005Q2 UR2 (hereafter called the Application
Server). Here we cover all the things you need to know to make the best use of
this tutorial.
Required Software
Java WSDP 1.6 Bundle
The example source for the technologies in this tutorial is contained in the Java
WSDP 1.6 bundle. If you are viewing this online, you need to download the Java
WSDP 1.6 bundle from:
http://java.sunwebservices/download/webs...spack.html
After you have installed the Java WSDP 1.6 bundle, the example source code is
in the subdirectories of the <JWSDP_HOME>/<technology>/samples/ directory.
For example, the examples for JAXB are included in the Java WSDP in the subdirectories
of the <JWSDP_HOME>/jaxb/samples directory.
Application Server
Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2 is the
build and runtime environment for the tutorial examples. To build, deploy, and
run the examples, you need a copy of the Application Server and the Java 2 Software
Development Kit, Standard Edition (J2SE SDK) 1.4.2 or higher (J2SE 5.0
is recommended). The Application Server and J2SE SDK are contained in the
J2EE 1.4 SDK. If you already have a copy of the J2SE SDK, you can download
the Application Server from:
Further Information
This tutorial includes the basic information that you need to deploy applications
on and administer the Application Server.
For reference information on the tools distributed with the Application Server,
see the man pages at http://docs.sundb/doc/819-0082.
See the Sun Java™ System Application Server Platform Edition 8.1 2005Q1
Developer’s Guide at http://docs.sundb/doc/819-0079 for information
about developer features of the Application Server.
See the Sun Java™ System Application Server Platform Edition 8.1 2005Q1
Administration Guide at http://docs.sundb/doc/819-0076 for information
about administering the Application Server.
For information about the PointBase database included with the Application
Server, see the PointBase Web site at www.pointbase.com.
Binding XML Schema
to Java Classes withJAXB
THE Java™Architecture for XML Binding (JAXB) provides a fast and convenient
way to bind XML schemas to Java representations, making it easy for Java
developers to incorporate XML data and processing functions in Java applications.
As part of this process, JAXB provides methods for unmarshalling XML
instance documents into Java content trees, and then marshalling Java content
trees back into XML instance documents.
What this all means is that you can leverage the flexibility of platform-neutral
XML data in Java applications without having to deal with or even know XML
programming techniques. Moreover, you can take advantage of XML strengths
without having to rely on heavyweight, complex XML processing models like
SAX or DOM. JAXB hides the details and gets rid of the extraneous relationships
in SAX and DOM—generated JAXB classes describe only the relationships
actually defined in the source schemas. The result is highly portable XML
data joined with highly portable Java code that can be used to create flexible,
lightweight applications and Web services.
JavaWSTutorial.pdf (Size: 2.52 MB / Downloads: 59)
About This Tutorial
THE Java™ Web Services Tutorial is a guide to developing Web applications
with the Java Web Services Developer Pack (Java WSDP). The Java WSDP is an
all-in-one download containing key technologies to simplify building of Web
services using the Java 2 Platform. This tutorial requires a full installation (Typical,
not Custom) of the Java WSDP, v1.6 with the Sun Java System Application
Server Platform Edition 8.1 2005Q2 UR2 (hereafter called the Application
Server). Here we cover all the things you need to know to make the best use of
this tutorial.
Required Software
Java WSDP 1.6 Bundle
The example source for the technologies in this tutorial is contained in the Java
WSDP 1.6 bundle. If you are viewing this online, you need to download the Java
WSDP 1.6 bundle from:
http://java.sunwebservices/download/webs...spack.html
After you have installed the Java WSDP 1.6 bundle, the example source code is
in the subdirectories of the <JWSDP_HOME>/<technology>/samples/ directory.
For example, the examples for JAXB are included in the Java WSDP in the subdirectories
of the <JWSDP_HOME>/jaxb/samples directory.
Application Server
Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2 is the
build and runtime environment for the tutorial examples. To build, deploy, and
run the examples, you need a copy of the Application Server and the Java 2 Software
Development Kit, Standard Edition (J2SE SDK) 1.4.2 or higher (J2SE 5.0
is recommended). The Application Server and J2SE SDK are contained in the
J2EE 1.4 SDK. If you already have a copy of the J2SE SDK, you can download
the Application Server from:
Further Information
This tutorial includes the basic information that you need to deploy applications
on and administer the Application Server.
For reference information on the tools distributed with the Application Server,
see the man pages at http://docs.sundb/doc/819-0082.
See the Sun Java™ System Application Server Platform Edition 8.1 2005Q1
Developer’s Guide at http://docs.sundb/doc/819-0079 for information
about developer features of the Application Server.
See the Sun Java™ System Application Server Platform Edition 8.1 2005Q1
Administration Guide at http://docs.sundb/doc/819-0076 for information
about administering the Application Server.
For information about the PointBase database included with the Application
Server, see the PointBase Web site at www.pointbase.com.
Binding XML Schema
to Java Classes withJAXB
THE Java™Architecture for XML Binding (JAXB) provides a fast and convenient
way to bind XML schemas to Java representations, making it easy for Java
developers to incorporate XML data and processing functions in Java applications.
As part of this process, JAXB provides methods for unmarshalling XML
instance documents into Java content trees, and then marshalling Java content
trees back into XML instance documents.
What this all means is that you can leverage the flexibility of platform-neutral
XML data in Java applications without having to deal with or even know XML
programming techniques. Moreover, you can take advantage of XML strengths
without having to rely on heavyweight, complex XML processing models like
SAX or DOM. JAXB hides the details and gets rid of the extraneous relationships
in SAX and DOM—generated JAXB classes describe only the relationships
actually defined in the source schemas. The result is highly portable XML
data joined with highly portable Java code that can be used to create flexible,
lightweight applications and Web services.