看来只有step by step了.
新建个工程,
File->New->Other...->WebServices->WSDL Importer
在Localtion of WSDL or URL:里填
http://www.webservicex.net/ValidateEmail.asmx?WSDL
点"Next>"
点"Finish"
在Unit1的implementation后加上
uses
ValidateEmail;
最后的代码象这样:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses ValidateEmail;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
if GetValidateEmailSoap.IsValidEMail('d@h.c') then
ShowMessage('Valid')
else
ShowMessage('Invalid')
end;
end.