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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.