Delphi-Kylix
  Home arrow Delphi-Kylix arrow Web Services Made Easy With Delphi
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

Web Services Made Easy With Delphi
By: Leidago
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 11
    2006-10-23

    Table of Contents:
  • Web Services Made Easy With Delphi
  • Why use XML (eXtensible Markup Language)?
  • Why SOAP (Simple Object Access Protocol)?
  • Web Service Description Language (WSDL)

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Web Services Made Easy With Delphi


    (Page 1 of 4 )

    Web services are being used more and more on the Internet, thanks to (among other advantages) their cross-platform compatibility. In this article, the first of three parts, we will cover what a web service is and how it works, and look at some examples of XML and SOAP messages.

    What is a web service? It is a collection of protocols that is used to exchange data between applications. To better explain what a web service is, let's take a look at an example. Say you run a music shop that has a web service. It lets customers search for the availability of a particular CD, given the name of the artist or group. To access this web service, you'll need to call its method and supply the artist or group name; in return, it gives you the particulars regarding availability of that CD.

    We do this kind of thing regularly on websites with some kind of user interface. For example, with Amazon, you search for a product by entering the name of the product and you get the results listed. A web service works pretty much in the same way, with some differences.

    The key difference is that a web service does not provide the user with a GUI, and enables applications to interface or communicate with each other. Software that is written in different programming languages and that run on different platforms can use web services to exchange data over computer networks such as the Internet. In other words, Windows applications can talk to Java and Perl applications (as well as others), which in normal circumstances would not be possible.

    How Does a Web Service Work?

    As I've stated in the introduction, web services enables communication between applications. They do this by using a combination of protocols and standards: XML, SOAP and WSDL. We are going to discuss these protocols at length before we build an example web service. Basically, a web service uses XML to tag data, SOAP to transfer a message and finally WSDL to describe the availability of services. Below is an example of a SOAP message:

    <?xml version="1.0"?>
    <SOAP-ENV:Envelope
    xmlns:SOAP-ENV=
    "http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
    <fi ndCD>
    <rating>JBrown</rating>
    </fi ndCD>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    A web service, because of its very nature requires protocols and standards that support both platform independence and implementation independence.

    More Delphi-Kylix Articles
    More By Leidago


       · This article explains how to built webservices with Delphi.
     

    DELPHI-KYLIX ARTICLES

    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...
    - Using the Client Dataset in Two-Tiered Clien...
    - Using the Client Dataset in File-Based Archi...
    - Demystifying the Client Dataset
    - Working with INI Files in Delphi
    - Creating Data Link (UDL) Files in Delphi
    - Looking at the Details for an Invoicing Appl...
    - Invoicing in Delphi: Show Me the Money
    - Saving Images and Binary Files to a Database...
    - Saving Files to a Database using Delphi: Sav...
    - Creating CF Applications and Integrating a S...
    - Using Try and Finally to Help Prevent Memory...
    - The Implementation of an FTP Server
    - FTP Server: The Theory







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway