Invoking a Web Service from a Client
To invoke the Web Service, you must know the URL used to retrieve the WSDL document. This is the same URL we used earlier.
To demonstrate this, we used a simple application with single, main form (see Figure 20.3).
Figure 20.3. The Main Form to the Web Service Client Application.
This application is straightforward: The user enters a temperature in the edit control, presses the desired conversion button, and the converted value is displayed in the Temperature label. The source for this application is shown in Listing 20.4.
Listing 20.4. Web Service Client
unit MainFrm; interface uses Windows, Messages, SysUtils, ... |
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.