DELPHI对接验证码短信接口DEMO示例
DELPHI短信插件
DELPHI对接验证码短信接口DEMO示例
本文为您提供了DELPHI语言版本的验证码短信接口对接DEMO示例
//接口类型:互亿无线触发短信接口,支持发送验证码短信、订单通知短信等。
//账户注册:请通过该地址开通账户 http://user.ihuyi.com/?9vXc7
//注意事项:
//(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.
//接口类型:互亿无线触发短信接口,支持发送验证码短信、订单通知短信等。
//账户注册:请通过该地址开通账户 http://user.ihuyi.com/?9vXc7
//注意事项:
//(1)调试期间,请使用用系统默认的短信内容:您的验证码是:【变量】。请不要把验证码泄露给其他人。
//(2)请使用 用户名 及 APIkey来调用接口,APIkey在会员中心可以获取;
//(3)该代码仅供接入互亿无线短信接口参考使用,客户可根据实际需要自行编写;
DELPHI对接验证码短信接口DEMO示例相关推荐
- C++对接验证码短信接口DEMO示例
C++对接验证码短信接口DEMO示例 本文为您提供了C++版本的验证码短信接口对接DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短信等. // 账户注册:请通过该地址开 ...
- VB语音对接验证码短信接口DEMO示例
本文为您提供了VB语言版本的验证码短信接口对接DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短信等. //账户注册:请通过该地址开通账户 http://user.ihu ...
- JAVA怎么给手机发短信对接验证码短信接口DEMO示例
发现一个超简单验证码短信接口对接DEMO示例 步骤 1.注册 互亿无线 账号 2.查找APIID和APIKEY 3.代码的书写 注册 互亿无线 账号 网站: http://user.ihuyi.com ...
- JAVA对接验证码短信接口DEMO示例
本文为您提供了JAVA语言版本的验证码短信接口对接DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短信等. // 账户注册:请通过该地址开通账户 http://user. ...
- NODE.JS怎么给手机发短信对接验证码短信接口DEMO示例
发现一个超简单验证码短信接口对接DEMO示例 步骤 1.注册 互亿无线 账号 2.查找APIID和APIKEY 3.代码的书写 注册 互亿无线 账号 网站: http://user.ihuyi.com ...
- JSP怎么给手机发短信对接验证码短信接口DEMO示例
发现一个超简单验证码短信接口对接DEMO示例 步骤 1.注册 互亿无线 账号 2.查找APIID和APIKEY 3.代码的书写 注册 互亿无线 账号 网站: http://user.ihuyi.com ...
- ASP对接验证码短信接口DEMO示例说明
简单实用的ASP短信接口demo <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <% '接口类型:互亿无线触 ...
- PHP对接验证码短信接口DEMO示例
PHP 互亿无线发送消息 我们做登录注册的时候难免要给用户发送验证码,今天来给大家介绍互亿无线的消息发送,大部分代码是参考官方demo的,废话不多说,直接上代码 //接口类型:互亿无线触发短信接口,支 ...
- GO对接验证码短信接口DEMO示例
//接口类型:触发短信接口,支持发送验证码短信.订单通知短信等. // 账户注册:请通过该地址开通账户http://user.ihuyi.com/?jmzFP2 // 注意事项: //(1)调试期间, ...
最新文章
- 【数据结构】链表中的 指针,地址
- DDD:用 “四色原型” 进行 “聚合设计”
- BZOJ 3870: Our happy ending( 状压dp )
- html输入框颜色属性,css 修改input输入框属性
- C++11系列学习之六-----for
- getprocaddress得到为0_基于ZU+系列MPSoC芯片的USB3.0/2.0接口硬件设计
- Oracle实现网吧计费系统,网吧计费管理系统 - 源码下载|Windows编程|其他小程序|源代码 - 源码中国...
- 基于JAVA+Servlet+JSP+MYSQL的会议管理系统
- Excel2010学习笔记(二):公式函数篇
- 一个 JS 框架需要做什么
- C++day02 学习笔记
- 倾斜摄影模型(.osgb)中心点位置的确定方法(SuperMap idesktop)
- SCDM学习笔记(2)
- 计算机网络病毒防范,计算机网络病毒的十项防范措施
- 谷物割捆一体农用车系统整体设计
- cer pem 证书转换_Cer Crt Pem Pfx 证书格式转换
- 文章引言--森林干扰--rse
- linux startx无效_startx命令_Linux startx 命令用法详解:用来启动X Window
- 百度api英文验证码
- [Java]String类基础知识与常用方法总结