Writing a Web Service

To demonstrate how to create a Web Service, we'll show you how to create the ever-popular Fahrenheit Celsius converter as a Web Service.

A Web service written in Delphi consists of three main things. The first is a WebModule with a few SOAP components (described in a moment). The module is automatically created for you when you execute the SOAP Server Wizard. The second two components you must build yourself. One of those is a class implementation, which is simply the code that describes what your Web service will actually do. The second thing to create is an interface to that class. The interface will expose only those pieces of the class that you want to offer to the rest of the world through your Web service.

Delphi provides ...

Get Borland® Delphi™ 6 Developer's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.