Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop web services
Develop JAX-WS web services (bottom up)
- Set 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 EE specification. We must set up your development environment before you start developing web services.
- Develop JAX-WS web services with annotations
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.
- Generate Java artifacts for JAX-WS applications
Use 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.
- Enable MTOM for JAX-WS web services
With 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 MTOM specification.
- Enforcing adherence to WSDL bindings in JAX-WS web services
JAX-WS v2.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. We can use the RespectBindingFeature to control whether a JAX-WS implementation is required to respect the contents of a WSDL binding that is associated with an endpoint.
- Develop 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. We can optionally use the webservices.xml deployment descriptor to augment or override application metadata specified in annotations within JAX-WS web services.
- Complete the JavaBeans implementation for JAX-WS applications
After we have developed the Java artifacts necessary to develop a JAX-WS web service, complete the JavaBeans implementation to assemble a WAR file. The resulting WAR file contains the JavaBeans implementation and the supported classes created from the tooling.
- Complete the EJB implementation for JAX-WS applications
After we have developed the Java artifacts necessary to develop a JAX-WS web service, complete the EJB implementation to assemble a JAR file. The resulting JAR file contains the EJB implementation and the supported classes created from the tooling.