This is called the description layer, and the WSDL (Web Service Description Language) standard that will make this happen is under development.Ībove that, there’s information that describes the nature of the service itself (not unlike the HTML-descriptive META tags), so that it can be categorised and found on sites that offer Web Service directories. This makes the Web Service useful to the rest of the Internet, allowing other developers to develop programs that can access your Web Service. On top of the data exchange, you also need information that describes the interface (or Application Program Interface – API) to the service. The data exchange happens at the packaging layer. And this means Web Services can be available anywhere on the Internet, passing through firewalls the same way viewing a Web page does. The only real difference is that, instead of HTML, Web Services use XML. Put another way, Web Services operate in basically the same way your browser does when it POSTs an HTML form to a site, and receives a Web page in response. Network-wise, data exchange in a Web Service typically happens via TCP port 80, using standard HTTP protocol POSTs. The server and the client could both be Web servers, or any other electronic device you care to think of. Web Services are about exchanging data between a server and a client, using a standard XML format to "package" requests and data so that both systems can "understand" each other. If you’ve ever used an RSS Feed to take news from another Website and place it on your own, you’ve already got a good idea of how Web Services work (see Kevin Yank’s article: PHP and XML: Parsing RSS 1.0). The first thing to understand about Web Services is they’re not really anything new. Let’s get started! The Basics of Web Services What you can do with XML-RPC: Wondering what to do next? We’ll give you some ideas for what you could do with XML-RPC and Web Services. ![]() Here, we’ll take one of the implementations described previously, and build a Web Service for it in PHP. Your first Web Service: If you want to get straight down to business, this is the place to be. PHP XML-RPC Implementations: Then we’ll review some of the Open Source implementations of XML-RPC in PHP: code you can use to quickly build your own Web Service, or access other Web Services from your site. Introducing XML-RPC: Next, we’ll introduce you to an XML standard for the exchange of data between systems, and we’ll put it into context with Kevin’s article.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |