What Is a Web Service?

Strictly speaking, web services have been around for many years. By definition, a web service is any form of service that can be accessed by an application over the Internet. In the past few years, however, the term web services has come to mean any service that utilizes one of the standardized XML web service technologies, such as SOAP or XML-RPC.

The advantages of XML are widely known. Any technology can communicate with any other technology if they share a common language. XML is a standardized way of transferring information that almost every technology can understand. XML does, however, have some disadvantages. It is cumbersome, because the data has to be described using plain text tags. So, while it is human-readable, it doesn’t provide the best format for transmitting binary data across wires. Flash Remoting circumvents this problem by passing data between the Flash Remoting adapter (the proxy for the web service) and the Flash client (the movie in the user’s browser) using the AMF format discussed in Chapter 1.

Tip

A thorough discussion of web services is beyond the scope of this book. For more information on SOAP and web services, see Programming Web Services with SOAP by Pavel Kulchenko, James Snell, and Doug Tidwell (O’Reilly), which is a great introduction to SOAP-based web services. You can also find information at the W3C at http://www.w3.org/TR/SOAP.

A web service consists of three parts:

The service description

This is usually stored in a Universal ...

Get Flash Remoting: The Definitive Guide 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.