CHAPTER 13Alternative Clients

In Chapter 9, you developed a RESTful web services facility for the Collab-Todo application. You're now able to go to your browser, type in the URL, and perform basic CRUD operations against the domain objects using XML or JSON. In this chapter, you're going to see how you can use Groovy to consume the web services.

The first part of this chapter will take a look at writing Groovy scripts to consume the web services from the command line. The second part of this chapter will build upon the first part to build a rich Groovy client, using a Swing application that leverages the web services.


In Chapter 9, you developed a RESTful web service to perform CRUD operations using XML or JSON. Figure 13-1 is an overview ...

Get Beginning Groovy and Grails: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.