Delphi Clinic C++Builder Gate Training & Consultancy Delphi Notes Weblog Dr.Bob's Webshop
Bob Swart (aka Dr.Bob) - Medical Officer TDMWeb Kylix Developer's Guide
 Kylix 2+ BizSnap - XML, SOAP & WebServices
See Also: Kylix Papers and Columns

I have been working on an BizSnap chapter for the Kylix Developer's Guide - adding more coverage of Kylix 2 and 3 to this book. The BizSnap chapter will be published on my website (in six weekly parts), covering XML Document Programming and Web Services support.

The original book Kylix Developer's Guide is written by Charlie Calvert, Marjorie Calvert, John Kaster, Bob Swart, and David Intersimone. The CD contains Kylix 2 Open Edition and a bonus chapter "What's New in Kylix 2", introducing the so-called "Snap" technologies in Kylix 2-3 such as DataSnap, WebSnap and BizSnap - see also the Table of Contents.
You can now read two sample chapters in PDF format (chapter 3 about Basic Pascal Syntax and chapter 7 about CLX Architecture and Visual Development written by Charlie Calvert).
I have written three in-depth chapters about web server development with Kylix (using NetCLX, also known as WebBroker), namely: chapter 19 (Apache Web Server Applications), chapter 20 (Web Server Development), and chapter 21 (Advanced Web Server Development).
Kylix Developer's Guide can be ordered now from Amazon.com and Amazon.co.uk (with nice discounts and a small commission for me, so thanks in advance for ordering through these links).


BizSnap is the name given by Borland to describe the feature set of Kylix that covers XML document programming as well as Web Services (using SOAP). In this chapter, we will first cover XML document programming using the TXMLDocument component. This will be enhanced using XML Data Binding and even further using the XML Mapping Tool.
We then move on to Web Services, and after a short introduction to SOAP, we'll implement our first Web Service in Kylix 2+, followed by the usage (consuming) of Web Services written in Kylix or other development environments.
Finally, we show the powerful combination of BizSnap with DataSnap to produce distributed applications (even cross-platform, considering that Delphi 6 also supports this on Windows).

0. XML Document
Half of this chapter will cover XML document programming. The place to start this coverage (this section) is with the TXMLDocument component, which can be found on the Internet tab of the Kylix 2+ Component Palette. But before you can actually start to use this component, you first need an XML document to work with. While writing this Kylix 2+ specific chapter for the Kylix Developer's Guide, I decided to write my own XML document, which reflects the structure of this chapter (so it also helped me to focus on the topics to write about). The XML document that will be used throughout the entire chapter is stored in BizSnap.xml and is defined as follows:

  <?xml version="1.0" standalone='yes' ?>
  <Chapter Title="BizSnap">
   <Section Title="XML Document Programming">
    <Components>TXMLDocument</Components>
    <Wizards/>
   </Section>
   <Section Title="XML Data Binding">
    <Components>TXMLDocument</Components>
    <Wizards>XML Data Binding Wizard</Wizards>
   </Section>
   <Section Title="XML Mapping Tool">
    <Components>TXMLDocument, TXMLTransform, TXMLTransformProvider, TXMLTransformClient</Components>
    <Wizards>XML Mapper</Wizards>
   </Section>
   <Section Title="Web Service (Server)">
    <Components>THTTPSoapDispatcher, THTTPSoapPascalInvoker, TWSDLHTMLPublish</Components>
    <Wizards>Soap Server Application Wizard</Wizards>
   </Section>
   <Section Title="Consuming Web Services">
    <Components>THTTPRIO</Components>
    <Wizards>Web Services Importer</Wizards>
   </Section>
   <Section Title="Web Services and DataSnap">
    <Components>TSoapConnection</Components>
    <Wizards>Soap Server Data Module</Wizards>
   </Section>
  </Chapter>
As you can see, the chapter is divided into six sections, and each section covers certain components as well as wizards, all found in Kylix 2+ Enterprise.
As a consequence, the table of contents for this chapter is as follows:
  1. XML Document Programming
  2. XML Data Binding
  3. XML Mapping Tool
  4. Web Service (Server)
  5. Consuming Web Services
  6. Web Services and DataSnap


This webpage © 2002-2009 by Bob Swart (aka Dr.Bob - www.drbob42.com). All Rights Reserved.