ConvertWebMod.pas
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:1k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit ConvertWebMod;
- interface
- uses
- SysUtils, Classes, HTTPApp, WSDLPub, SOAPPasInv, SOAPHTTPPasInv,
- SoapHTTPDisp, WebBrokerSOAP;
- type
- TWebModule1 = class(TWebModule)
- HTTPSoapDispatcher1: THTTPSoapDispatcher;
- HTTPSoapPascalInvoker1: THTTPSoapPascalInvoker;
- WSDLHTMLPublish1: TWSDLHTMLPublish;
- procedure WebModule1WebActionItem1Action(Sender: TObject;
- Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- WebModule1: TWebModule1;
- implementation
- {$R *.DFM}
- uses
- InvokeRegistry, ConvertIntf;
- procedure TWebModule1.WebModule1WebActionItem1Action(Sender: TObject;
- Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
- begin
- Response.Content :=
- '<h3>GetMethExternalName - ToEuro</h3><p>' +
- InvRegistry.GetMethExternalName(TypeInfo(IConvert), 'ToEuro') +
- '<h3>GetInterfaceExternalName - IConvert</h3><p>' +
- InvRegistry.GetInterfaceExternalName(TypeInfo(IConvert)) +
- '<h3>GetNamespaceByGUID - IConvert</h3><p>' +
- InvRegistry.GetNamespaceByGUID (IConvert);
- end;
- end.