HTTP://LOCALHOST/SOAP/P_1.EXE/WSDL
会显示什么?
会显示什么?
解决方案 »
- 哪位能给详细讲解一下STRPAS函数和PCHAR函数
- FastReport 代码编辑中文问题
- idpop3怎样区分邮件是否为新邮件?
- 通过自绘的办法改变 TTabSheet TToolButton 控件的底色
- dbgrid中的记录,怎样循环插入到表test中?
- 与Power Builder相比,Delphi的优越性在哪?
- 我没有钱买光驱又不能拆硬盘,请问各位大虾那里有免费的Delphi下载(序列号是多少)谢谢!
- 这样写为什么会出错
- ihihonline(小小->充电中……) 进来领分:)
- 数据源问题?
- 请教一条SQL的写法
- TABLE1.DATASOURCE,TABLE1.DATANAME是不是只能连接一个表,而且程序理只读,不可写?
或http://go1.163.com/comanche/mentals/tech/delphi/d6_soap1.htm
你的东东我早就看过了,可我是按Delphi update#2打补丁之后的格式编写的,即一个单元写、注册接口,另一个单元注册类。但还是不行。
unit U_1;interfaceuses
SysUtils, Classes, Graphics, Controls, Forms, Dialogs;type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementationuses ComApp;{$R *.DFM}const
CLASS_ComWebApp: TGUID = '{BC4CF973-F724-47B8-9BA2-880D6F70D69B}';initialization
TWebAppAutoObjectFactory.Create(Class_ComWebApp,
'cai_FirstWebService', 'cai_FirstWebService Object');end.{ Invokable interface IFirstWS }unit FirstWSIntf;interfaceuses InvokeRegistry, Types, XSBuiltIns;type { Invokable interfaces must derive from IInvokable }
IFirstWS = interface(IInvokable)
['{E5BE9B95-5AE4-4B57-9049-5342F55E1054}'] function GetMessage(num : integer):string;stdcall; { Methods of Invokable interface must not use the default }
{ calling convention; stdcall is recommended }
end;implementationuses FirstWSImpl;initialization
{ Invokable interfaces must be registered }
InvRegistry.RegisterInterface(TypeInfo(IFirstWS));end.
{ Invokable implementation File for TFirstWS which implements IFirstWS }unit FirstWSImpl;interfaceuses InvokeRegistry, Types, XSBuiltIns,FirstWSIntf;type { TFirstWS }
TFirstWS = class(TInvokableClass, IFirstWS)
public
function GetMessage(num : integer):string;stdcall; end;implementation
procedure createwebtest(out obj:tobject);
begin
obj:=TFirstWS.Create;
end;
function TFirstWS.GetMessage(num : integer):string;
begin
case num of
1: result := '你很可爱';
2: result := 'ok2;
end;
end;
initialization
{ Invokable classes must be registered }
InvRegistry.RegisterInvokableClass(TFirstWS,createwebtest);end.