急.100分,delphi调用Web Service出错提 找库存商品软件
Web Service是用delphi写的
现在客户端在调用Web Service
调用后出错提示 "没有注册类别"
问应该是什么原因.????????????????????
[:(!]
2楼: 可能是客户端上没有安装相应的软件,比如IE,或版本过低 如库存商品软件
3楼: 引用 OleServer 在初始化部分注册, 具体语句忘掉了, 你在富翁上搜。
4楼: unit FirstWSIntf;
interface
uses
Types, XSBuiltIns;
type
IFirstWS = interface(IInvokable)
[''{B2FBCFDB-6AC8-4B66-ACB9-E283FA0B8B06}'']
function GetWSMsg : String; stdcall;
function getmystr:string; stdcall;
function querybyname (const sName : String) : String; stdcall;
end;
implementation
uses
InvokeRegistry;
initialization
InvRegistry.RegisterInterface(TypeInfo(IFirstWS));
end.
5楼: unit wsfhmapIntf;
interface
uses InvokeRegistry, Types, XSBuiltIns;
type
{ Invokable interfaces must derive from IInvokable }
Iwsfhmap = interface(IInvokable)
[''{2B9547C8-8861-44D6-9C85-72300528EE7B}'']
function Getmap_fh(const name: WideString):tstringdynarray; stdcall;
function GetAttachment(const name: WideString):TSOAPAttachment; stdcall;
end;
implementation
initialization
InvRegistry.RegisterInterface(TypeInfo(Iwsfhmap));
end.
这个我也有写..我奇怪死了...
6楼: 接受答案了.