7. Communicating with Other Servers

If you cannot or won’t use GWT servlets on the server (possibly because your company has already set up a different environment, with a services-oriented architecture, probably based in scripting languages such as PHP) you can still do direct Ajax calls and process other kind of responses, such as XML (or JSON, which we’ll see later on). In this chapter we will study the usage of XmlHttpRequests and connect to services both to get and to send XML data.

RPC calls are very useful in GWT, but in today’s computing environments, it’s highly likely that your GWT application will have to coexist with other, previously developed, separate applications. Your company might already have in place a service-oriented architecture, ...

Get Essential GWT: Building for the Web with Google Web Toolkit 2 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.