O'Reilly logo

Drupal Web Services by Trevor James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Consuming Web Services in Drupal

In the previous chapter, we learned that our Drupal site can act as a web services client or a web services provider (or server). Drupal does this by integrating and using various types of web services code, including XML-RPC, REST, JSON, XML, and RSS. In this chapter, we're going to discuss how our Drupal site can act as a web services consumer. This means that we can take our Drupal site and add code to it in the form of a Drupal module, and make this module connect to an external server or application that provides a web service that we want to utilize and consume data from.

We're first going to look in detail at a protocol that Drupal can use to make this communication happen. This web services protocol ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required