Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Calling a REST service is done by URL. This means that all the information that the server needs to process your request is part of the URL (this is not entirely true due to HTTP headers, but close enough). Here is an example of a REST web service that allows you to receive live information on American airports:

...

http://services.faa.gov/airport/status/IAD?format=xml

Go ahead, click on it to see what the current conditions at Washington Dulles Airport are. Your answer may look something like this:

...

Now, lets look again at the URL:

Code Block
http://services.faa.gov/airport/status/IAD?format=xml

. It consists of several elements:

...