Chapter 15. Web Services for Remote Portlets (WSRP)

 

This chapter covers

  • WSRP concepts
  • Publishing portlets as a service
  • Consuming remote portlets as a service

Just as you’d expect, a web service is a service that’s accessible over the web. HTTP and XML form the backbone of web services, which fact makes them platform and language independent. Web services provide the means to achieve SOA (service-oriented architecture)—an architectural approach in which systems are composed of loosely coupled services.

In the context of SOA, a service refers to a functionality of value to the consumer of the web service. Amazon’s Fulfillment Web Service (Amazon FWS) is a good example of this concept. This feature allows merchants to request Amazon to physically fulfill customer orders on their behalf: Amazon does the work for a small fee, and you reap the benefits of not having to lug your stuff to the post office and fulfill orders on your own. Web services are data-oriented services—they process requests and return data. This puts the burden on web service consumers to provide presentation logic for the web service.

15.1. What makes remote portlets a reality?

15.2. Getting started with WSRP using Liferay Portal

15.3. Creating a WSRP producer and adding portlets to it

15.4. Creating a WSRP consumer

15.5. Locally registering remote portlets

15.6. Registering WSRP consumers with WSRP producers

15.7. Summary