About Web Services

 <  Day Day Up  >  

So what is a Web service? It's certainly a popular buzzword , but what does it mean? Well, loosely speaking, the term refers to the ability of computers that are remote from each other to exchange information and messages over the World Wide Web (which we'll generally refer to simply as "the Web").

As an example, let's say there's a computer out there somewhere on the Internet that knows the current temperature at various points all over the world. If you send that computer a latitude and longitude, in the correct format, the remote computer sends back the nearest current temperature it can find. Such a transaction is shown in Figure 22.1.

Figure 22.1. A desktop PC queries a remote server for temperature data over the Web, and receives an answer in XML format.

graphics/22fig01.gif


You'll notice a couple of things about this picture. The machine making the request, which we've called the Web Services Client, has sent its request in the form of a URL (a Uniform Resource Locator , the standard way of making a request for content over the Web). And the responding computer has sent the requested information back in a tagged message format that you may recognize as XML.

The important thing about this transaction is that it doesn't require any specialized communication protocols to exist between the two machines. The request and response both use standard HTTP, the well-established protocol that powers the entire Web. And the data returned by the server is presented as XML ”a standardized and widely-accepted way to present data.

So that's our definition: a Web service is a means of exchanging information and messages between two computers, which uses XML data sent over the Web via HTTP. Not all Web services involve sending XML over HTTP. But many do, and it's a suitable way to think about Web services for the purpose of working with FileMaker Pro.

Before you can delve very far into how FileMaker works with Web services, though, you need to learn some of the basics of how FileMaker can work with XML data. For the first half of this chapter we discuss how FileMaker interacts with XML, and in the second half, we apply that knowledge to working with actual Web services.

 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net