CHAPTER 9Web Services

Up until this point, you have seen how you can use Grails to develop user-oriented web applications. This chapter focuses on how to use web services to expose your application functionality to other applications. You can also use the techniques discussed in this chapter to drive Web 2.0 Ajax-enabled web applications, like those discussed in Chapter 8.

Originally, web services grew in popularity as a means for system integration. But with the recent popularity of sites such as Google Maps1 and,2 and social networking sites like Facebook,3 there is an expectation that public APIs should be offered so users can create new and innovative client applications. When these clients combine multiple services from multiple ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.