Java Reference
In-Depth Information
Chapter7.Adding Web Services to Your
Applications
In the previous chapter, we discussed the Java Messaging Service API, which is commonly
used to develop loosely coupled applications and a common integration pattern for Java-to-
Java systems. In this chapter, you will learn about web services that are defined by W3C as
software systems, and designed to support interoperable machine-to-machine interaction
over a network.
What makes web services different from other forms of distributed computing is that in-
formation is exchanged using only simple and nonproprietary protocols. This means the
services can communicate with each other regardless of location, platform, or program-
ming language. Essentially, web services protocols provide a platform-independent way to
perform Remote Procedure Calls ( RPCs ).
The focus of this chapter will be on the two chief web services standards, JAX-WS ( JSR
224 ) and JAX-RS ( JSR 339 ), and how they are implemented in WildFly. As you can ima-
gine, there is a lot of ground to cover, so we will quickly get our hands dirty with the fol-
lowing topics:
• A short introduction to SOAP-based web services
• Creating, deploying, and using the JBoss JAX-WS implementation (Apache CXF)
• A quick overview of REST web services
• How to create, deploy, and use services using the JBoss JAX-RS implementation
(RESTEasy)
• Integrating JAR-RS with an external non-Java application
Search WWH ::




Custom Search