易截截图软件、单文件、免安装、纯绿色、仅160KB

求 delphi webserivice 调用例子

求  delphi webserivice 调用例子
服务端编写:新建"WebServices-->SOAP Server Application-->ISAPI/NSAPI Dynamic Link Library","Service name"填写你要的服务名,如"SendSmsServices",然后在SendSmsServiceIntf.pas中添加接口函数:
Delphi(Pascal) code:
{ Invokable interface ISendSmsService }

unit SendSmsServiceIntf;

interface

uses InvokeRegistry, Types, XSBuiltIns;

type

{ Invokable interfaces must derive from IInvokable }
ISendSmsService = interface(IInvokable)
['{2DE80373-26E4-49B6-86E1-DC67D456FB90}']

{ Methods of Invokable interface must not use the default }
{ calling convention; stdcall is recommended }
function sendSms(const sendSms1: widestring): widestring; stdcall;
end;

implementation

initialization
{ Invokable interfaces must be registered }
InvRegistry.RegisterInterface(TypeInfo(ISendSmsService));

end.


在SendSmsServiceImpl.pas中写具体的处理过程

Delphi(Pascal) code:
{ Invokable implementation File for TSendSmsService which implements ISendSmsService }

unit SendSmsServiceImpl;

interface

uses InvokeRegistry, Types, XSBuiltIns, SendSmsServiceIntf;

type
{ TSendSmsService }
TSendSmsService = c


相关问答:

delphi中ACCESS的自定义函数怎么用呢...

我在模块里自定义了一个函数:stradd()

可是在adoquery1.sql.add('select stradd(author) from book');
时提示stradd未定义...

这个问题有什么办法可以解决的吗? 非常感激!


......

delphi如何向Access数据表中自定义字段

delphi如何向Access数据表中自定义字段?然后显示到DBGrid中
怎么没人理我呀

分分忒少咧,一般人都懒得进来……*^_^*

SQL
creat table TableName(ID Counter Primary Key,FieldName varchar(20))

ADOQue ......

转帖:DELPHI编写服务程序总结二--编写技巧

原文地址:http://hi.baidu.com/sqldebug/blog/item/58a764624a44d74eeaf8f863.html

一、如何限制系统服务和桌面程序只运行一个

如何限制系统服务和桌面程序只运行一个

在工程加入下列代码可以 ......

急!Delphi中显示c#的vs2008写的控件

我想将c#写的控件嵌到Delphi7的Form中显示,但是始终是没坐成,我通过导入tlb文件,可以通过c#写的接口,实现在Delphi中显示一个窗体,但是显示的只是在桌面上浮动的窗体,无法将他的父容器指定为Delphi的Form,我想 ......

delphi webservice 调用报错 急

project project3.exe raised exception class ERemotableException with message 'access violation at address 004037B in module'project2.exe'.read of address 00000003'.process stopped.use ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号