SoapDataForm.pas
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:1k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit SoapDataForm;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, DB, DBClient, SoapConn, Grids, DBGrids, StdCtrls, SoapServerIntf,
- Rio, SoapHTTPClient;
- type
- TFormSDC = class(TForm)
- SoapConnection1: TSoapConnection;
- ClientDataSet1: TClientDataSet;
- DBGrid1: TDBGrid;
- DataSource1: TDataSource;
- Button1: TButton;
- Button2: TButton;
- HTTPRIO1: THTTPRIO;
- Button3: TButton;
- procedure Button1Click(Sender: TObject);
- procedure Button2Click(Sender: TObject);
- procedure Button3Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- FormSDC: TFormSDC;
- implementation
- {$R *.dfm}
- procedure TFormSDC.Button1Click(Sender: TObject);
- begin
- ClientDataSet1.Open;
- end;
- procedure TFormSDC.Button2Click(Sender: TObject);
- begin
- ClientDataSet1.ApplyUpdates (-1);
- end;
- procedure TFormSDC.Button3Click(Sender: TObject);
- var
- ISoapData: ISoapTestDm;
- begin
- // CURRENTLY DOESN'T WORK!
- ISoapData := HttpRio1 as ISoapTestDm;
- ShowMessage (IntToStr (ISoapData.GetRecordCount));
- end;
- end.