Web Services with Jakarta XML Web Services
Web services are application programming interfaces that can be invoked remotely. Web services can be invoked from clients written in any language.
Jakarta EE includes the XML Web Services API as one of its technologies. We can use XML Web Services to develop SOAP (Simple Object Access Protocol) web services in the Java platform. Jakarta XML Web Services is a high-level API; invoking web services via Jakarta XML Web Services is done via remote procedure calls.
SOAP-based web services are now a legacy technology. In most cases, RESTful web services are preferred to SOAP-based services for new development. Knowledge of SOAP-based web services is primarily useful for maintaining legacy applications.
In this chapter, we will cover the following topics:
- Developing web services with Jakarta XML Web Services
- Exposing Enterprise Beans as web services
Note
The example source code for this chapter can be found on GitHub...