📄 client.dpr
字号:
(* ---------------------------------------------------------------------------
CREATING SIMPLE WEBSERVICE USING DELPHI 5 (PART3 - SOAP)
Lubomir ROSENSTEIN, 23/05/2001
Lubomir_Rosenstein@ hotmail.com
This is the THIRD example how to create a simple web-service using Delphi5. The first
one uses the HTTP for communication between the server and the client, the second
adds XML to the picture and this follows the .NET SOAP vision (which will be
implemented in Delphi 6 as we read for now) and can be built using the
Microsoft SOAP Toolkit 2.0, which is available for download.
The first step is to create an Active Server Object and Active X library using
Delphi 5 wizards. The COM interface is plain and has only one method, the
known from the previous examples GetSum. Using the generated ASP file you can test
the COM first requesting it with something like http://localhost/scripts/Summer.asp?x=6&y=8
If everything goes well, you will get the answer on your browser.
The next step is to generate Web Service Description Language (WSDL) file from
a COM object. For this, the SOAP Toolkit has to be installed and the WSDL generator wizard used.
Last is creating the client, which is simple once you have the SOAP library
registered on your machine.
Enjoy!
------------------------------------------------------------------------------*)
program Client;
uses
Forms,
unClient in 'unClient.pas' {Form1};
{$R *.RES}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -