易语言对接第三方验证码短信接口demo
本文为您提供了易语言版本的验证码短信接口对接DEMO示例
//接口类型:互亿无线触发短信接口,支持发送验证码短信、订单通知短信等。
//账户注册:请通过该地址开通账户 http://user.ihuyi.com/?DKimmu
//注意事项:
//(1)调试期间,请使用用系统默认的短信内容:您的验证码是:【变量】。请不要把验证码泄露给其他人。
//(2)请使用 用户名 及 APIkey来调用接口,APIkey在会员中心可以获取;
//(3)该代码仅供接入互亿无线短信接口参考使用,客户可根据实际需要自行编写;
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://106.ihuyi.com/webservice/sms.php?wsdl
// >Import : http://106.ihuyi.com/webservice/sms.php?wsdl:0
// Encoding : utf-8
// Version : 1.0
// (2013/11/26 10:37:24 - - $Rev: 10138 $)
// ************************************************************************ //unit sms;interfaceuses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;constIS_OPTN = $0001;IS_REF = $0080;type// ************************************************************************ //// The following types, referred to in the WSDL document are not being represented// in this file. They are either aliases[@] of other types represented or were referred// to but never[!] declared in the document. The types from the latter category// typically map to predefined/known XML or Borland types; however, they could also // indicate incorrect WSDL documents that failed to declare or import a schema type.// ************************************************************************ //// !:int - "http://www.w3.org/2001/XMLSchema"[Gbl]// !:string - "http://www.w3.org/2001/XMLSchema"[Gbl]// !:srting - "http://www.w3.org/2001/XMLSchema"[Gbl]SubmitResult = class; { "http://106.ihuyi.com/"[GblCplx] }ChangePasswordResult = class; { "http://106.ihuyi.com/"[GblCplx] }GetNumResult = class; { "http://106.ihuyi.com/"[GblCplx] }VersionInfoResult = class; { "http://106.ihuyi.com/"[GblCplx] }// ************************************************************************ //// XML : SubmitResult, global, // Namespace : http://106.ihuyi.com/// ************************************************************************ //SubmitResult = class(TRemotable)privateFcode: Integer;Fmsg: WideString;Fsmsid: Integer;publishedproperty code: Integer read Fcode write Fcode;property msg: WideString read Fmsg write Fmsg;property smsid: Integer read Fsmsid write Fsmsid;end;// ************************************************************************ //// XML : ChangePasswordResult, global, // Namespace : http://106.ihuyi.com/// ************************************************************************ //ChangePasswordResult = class(TRemotable)privateFcode: Integer;Fmsg: WideString;publishedproperty code: Integer read Fcode write Fcode;property msg: WideString read Fmsg write Fmsg;end;// ************************************************************************ //// XML : GetNumResult, global, // Namespace : http://106.ihuyi.com/// ************************************************************************ //GetNumResult = class(TRemotable)privateFcode: Integer;Fmsg: WideString;Fnum: Integer;publishedproperty code: Integer read Fcode write Fcode;property msg: WideString read Fmsg write Fmsg;property num: Integer read Fnum write Fnum;end;// ************************************************************************ //// XML : VersionInfoResult, global, // Namespace : http://106.ihuyi.com/// ************************************************************************ //VersionInfoResult = class(TRemotable)privateFmsg: WideString;publishedproperty msg: WideString read Fmsg write Fmsg;end;// ************************************************************************ //// Namespace : http://106.ihuyi.com/// soapAction: http://106.ihuyi.com/%operationName%// transport : http://schemas.xmlsoap.org/soap/http// style : document// binding : smsSoap// service : sms// port : smsSoap// URL : http://106.ihuyi.com/webservice/sms.php?smsService// ************************************************************************ //smsSoap = interface(IInvokable)['{228902AE-4B53-39C9-05CA-F389FEE82174}']function Submit(const account: WideString; const password: WideString; const mobile: WideString; const content: WideString): SubmitResult; stdcall;function ChangePassword(const account: WideString; const password: WideString; const newpassword: WideString): ChangePasswordResult; stdcall;function GetNum(const account: WideString; const password: WideString): GetNumResult; stdcall;function VersionInfo: VersionInfoResult; stdcall;end;function GetsmsSoap(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): smsSoap;implementationuses SysUtils;function GetsmsSoap(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): smsSoap;
constdefWSDL = 'http://106.ihuyi.com/webservice/sms.php?wsdl';defURL = 'http://106.ihuyi.com/webservice/sms.php?smsService';defSvc = 'sms';defPrt = 'smsSoap';
varRIO: THTTPRIO;
beginResult := nil;if (Addr = '') thenbeginif UseWSDL thenAddr := defWSDLelseAddr := defURL;end;if HTTPRIO = nil thenRIO := THTTPRIO.Create(nil)elseRIO := HTTPRIO;tryResult := (RIO as smsSoap);if UseWSDL thenbeginRIO.WSDLLocation := Addr;RIO.Service := defSvc;RIO.Port := defPrt;end elseRIO.URL := Addr;finallyif (Result = nil) and (HTTPRIO = nil) thenRIO.Free;end;
end;initializationInvRegistry.RegisterInterface(TypeInfo(smsSoap), 'http://106.ihuyi.com/', 'utf-8');InvRegistry.RegisterDefaultSOAPAction(TypeInfo(smsSoap), 'http://106.ihuyi.com/%operationName%');InvRegistry.RegisterInvokeOptions(TypeInfo(smsSoap), ioDocument);RemClassRegistry.RegisterXSClass(SubmitResult, 'http://106.ihuyi.com/', 'SubmitResult');RemClassRegistry.RegisterXSClass(ChangePasswordResult, 'http://106.ihuyi.com/', 'ChangePasswordResult');RemClassRegistry.RegisterXSClass(GetNumResult, 'http://106.ihuyi.com/', 'GetNumResult');RemClassRegistry.RegisterXSClass(VersionInfoResult, 'http://106.ihuyi.com/', 'VersionInfoResult');end.
易语言对接第三方验证码短信接口demo相关推荐
- 如何用ASP语言对接第三方验证码短信接口?
ASP对接验证码短信接口DEMO示例 <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <% '接口类型:互亿无 ...
- VB语言如何对接三方验证码短信接口
VB对接验证码短信接口DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短信等. // 账户注册:请通过该地址开通账户 http://user.ihuyi.com/?DKi ...
- VB语音对接验证码短信接口DEMO示例
本文为您提供了VB语言版本的验证码短信接口对接DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短信等. //账户注册:请通过该地址开通账户 http://user.ihu ...
- JAVA对接验证码短信接口DEMO示例
本文为您提供了JAVA语言版本的验证码短信接口对接DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短信等. // 账户注册:请通过该地址开通账户 http://user. ...
- DELPHI对接验证码短信接口DEMO示例
DELPHI短信插件 DELPHI对接验证码短信接口DEMO示例 本文为您提供了DELPHI语言版本的验证码短信接口对接DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短 ...
- 怎么用VB对接三方验证码短信接口
VB对接验证码短信接口DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短信等. // 账户注册:请通过该地址开通账 http://user.ihuyi.com/?DKim ...
- C++对接验证码短信接口DEMO示例
C++对接验证码短信接口DEMO示例 本文为您提供了C++版本的验证码短信接口对接DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短信等. // 账户注册:请通过该地址开 ...
- JAVA怎么给手机发短信对接验证码短信接口DEMO示例
发现一个超简单验证码短信接口对接DEMO示例 步骤 1.注册 互亿无线 账号 2.查找APIID和APIKEY 3.代码的书写 注册 互亿无线 账号 网站: http://user.ihuyi.com ...
- NODE.JS怎么给手机发短信对接验证码短信接口DEMO示例
发现一个超简单验证码短信接口对接DEMO示例 步骤 1.注册 互亿无线 账号 2.查找APIID和APIKEY 3.代码的书写 注册 互亿无线 账号 网站: http://user.ihuyi.com ...
最新文章
- Unity运行时检测Altas使用情况
- 第四范式入围Gartner新兴技术与趋势影响力雷达全球代表厂商
- C语言学习一个月后感想
- Python使用numpy计算矩阵特征值、特征向量与逆矩阵
- 在ruby使用终端启用外部程序
- 显示lib包_Java 添加、删除、移动、隐藏/显示Excel工作表
- Error response from daemon: conflict: unable to delete feb5d9fea6a5 (must be forced) - image is bein
- 千帆竞发势如虹 明光政策送东风 首届明光大赛来了
- 篮球c语言程序,源程序C代码:篮球比赛应用系统
- MOSE学习笔记(看的官方手册)
- Python学员信息管理系统
- 如何编辑运行HTML网页文件(HTML编辑工具使用介绍)
- python标准数据类型叮叮叮
- LaTeX公式-Katex解析
- 树莓派u盘启动并扩容
- Java 数据转换/进制转换 工具类
- self attention(自注意力机制)
- SassScript
- 要你乘风远航,要你扬指疯狂——第六次自考总结
- conj在c语言中什么意思,关于conj是什么词性
热门文章
- CRMEB知识付费系统v1.6.0版
- 阿里云mysql 连接数_阿里云mysql最大连接数
- openssl——sha256算法源码
- 目标跟踪评估绘图(1):Windows10环境将pycharm跑出来的OTB100数据集的.txt结果文件,转换成.mat文件
- python图片RGBA转RGB
- c#程序设计教程 唐大仕pdf_C#程序设计教程
- android app hilink,HUAWEI HiLink
- Python2.7获取QQ空间部分好友
- VC操作EXCEL2003
- flutter doctor问题 Flutter plugin not installed this adds Flutter specific functionality