Book Image

Java EE 7 Development with WildFly

Book Image

Java EE 7 Development with WildFly

Overview of this book

Table of Contents (21 chapters)
Java EE 7 Development with WildFly
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. 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 information is exchanged using only simple and nonproprietary protocols. This means the services can communicate with each other regardless of location, platform, or programming 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 imagine, there is a lot of ground...