Setting up a development environment for web services
The application server provides command-line tools to develop
web services clients and implementations that are based on the Web
Services for Java Platform, Enterprise Edition
(Java EE) specification. You must set up your
development environment before you start developing web services.
Developing JAX-WS web services with annotations
Java API for XML-Based
Web Services (JAX-WS) supports two different service endpoint implementations
types, the standard web service endpoint interface and a new Provider
interface to enable services to work at the XML message level. By
using annotations on the service endpoint implementation or client,
you can define the service endpoint as a web service.
Generating Java artifacts for JAX-WS applications
Use Java API for XML-Based Web Services
(JAX-WS) tools to generate the necessary JAX-WS and Java Architecture
for XML Binding (JAXB) Java artifacts
that are needed for JAX-WS web services applications when starting
from JavaBeans or enterprise beans components.
Enabling MTOM for JAX-WS web services
With Java API for XML-Based Web Services
(JAX-WS), you can send binary attachments such as images or files
along with web services requests. JAX-WS adds support for optimized
transmission of binary data as specified by the SOAP Message Transmission
Optimization Mechanism (MTOM) specification.
Enforcing adherence to WSDL bindings in JAX-WS web services
Java API for XML-Based
Web Services (JAX-WS) Version 2.1 introduced the concept of features as
a way to programmatically control specific functions and behaviors.
The RespectBindingFeature is one of the supported standard features.
You can use the RespectBindingFeature to control whether a JAX-WS
implementation is required to respect the contents of a Web Services
Description Language (WSDL) binding that is associated with an endpoint.
Developing a webservices.xml deployment descriptor for JAX-WS applications Deployment descriptors are standard text files,
formatted using XML and packaged in a web services application. You
can optionally use the webservices.xml deployment descriptor to augment
or override application metadata specified in annotations within Java API for XML-Based Web Services (JAX-WS)
web services.
Completing the JavaBeans implementation for JAX-WS applications
After you have developed the Java artifacts
necessary to develop a Java API
for XML-Based Web Services (JAX-WS) web service, you must complete
the JavaBeans implementation to assemble a
web application archive (WAR) file. The resulting WAR file contains
the JavaBeans implementation and the supported
classes created from the tooling.
Completing the EJB implementation for JAX-WS applications
After you have developed the Java artifacts
necessary to develop a Java API
for XML-Based Web Services (JAX-WS) web service, you must complete
the Enterprise JavaBeans (EJB) implementation
to assemble a Java archive (JAR) file. The resulting
JAR file contains the Enterprise JavaBeans implementation
and the supported classes created from the tooling.