Develop JAX-WS web services with WSDL files (top-down)
Subtopics
- 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 the development environment before starting developing web services.- Generate Java artifacts for JAX-WS applications from a WSDL file
Use JAX-WS tools to generate the Java artifacts needed to develop JAX-WS web services when starting with a WSDL file.- Enable MTOM for JAX-WS web services
With JAX-WS, we 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 specification.- Enforcing adherence to WSDL bindings in JAX-WS web services
Java API for XML-Based 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. Use the RespectBindingFeature to control whether a JAX-WS implementation is required to respect the contents of a WSDL binding 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.- Completing the JavaBeans implementation for JAX-WS applications
After we have developed the Java artifacts necessary to develop a JAX-WS web service, we 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 we have developed the Java artifacts necessary to develop a JAX-WS web service, we must complete the EJB implementation to assemble a JAR file. The resulting JAR file contains the Enterprise JavaBeans implementation and the supported classes created from the tooling.