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示例相关推荐

  1. C++对接验证码短信接口DEMO示例

    C++对接验证码短信接口DEMO示例 本文为您提供了C++版本的验证码短信接口对接DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短信等. // 账户注册:请通过该地址开 ...

  2. VB语音对接验证码短信接口DEMO示例

    本文为您提供了VB语言版本的验证码短信接口对接DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短信等. //账户注册:请通过该地址开通账户 http://user.ihu ...

  3. JAVA怎么给手机发短信对接验证码短信接口DEMO示例

    发现一个超简单验证码短信接口对接DEMO示例 步骤 1.注册 互亿无线 账号 2.查找APIID和APIKEY 3.代码的书写 注册 互亿无线 账号 网站: http://user.ihuyi.com ...

  4. JAVA对接验证码短信接口DEMO示例

    本文为您提供了JAVA语言版本的验证码短信接口对接DEMO示例 //接口类型:互亿无线触发短信接口,支持发送验证码短信.订单通知短信等. // 账户注册:请通过该地址开通账户 http://user. ...

  5. NODE.JS怎么给手机发短信对接验证码短信接口DEMO示例

    发现一个超简单验证码短信接口对接DEMO示例 步骤 1.注册 互亿无线 账号 2.查找APIID和APIKEY 3.代码的书写 注册 互亿无线 账号 网站: http://user.ihuyi.com ...

  6. JSP怎么给手机发短信对接验证码短信接口DEMO示例

    发现一个超简单验证码短信接口对接DEMO示例 步骤 1.注册 互亿无线 账号 2.查找APIID和APIKEY 3.代码的书写 注册 互亿无线 账号 网站: http://user.ihuyi.com ...

  7. ASP对接验证码短信接口DEMO示例说明

    简单实用的ASP短信接口demo <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <% '接口类型:互亿无线触 ...

  8. PHP对接验证码短信接口DEMO示例

    PHP 互亿无线发送消息 我们做登录注册的时候难免要给用户发送验证码,今天来给大家介绍互亿无线的消息发送,大部分代码是参考官方demo的,废话不多说,直接上代码 //接口类型:互亿无线触发短信接口,支 ...

  9. GO对接验证码短信接口DEMO示例

    //接口类型:触发短信接口,支持发送验证码短信.订单通知短信等. // 账户注册:请通过该地址开通账户http://user.ihuyi.com/?jmzFP2 // 注意事项: //(1)调试期间, ...

最新文章

  1. 【数据结构】链表中的 指针,地址
  2. DDD:用 “四色原型” 进行 “聚合设计”
  3. BZOJ 3870: Our happy ending( 状压dp )
  4. html输入框颜色属性,css 修改input输入框属性
  5. C++11系列学习之六-----for
  6. getprocaddress得到为0_基于ZU+系列MPSoC芯片的USB3.0/2.0接口硬件设计
  7. Oracle实现网吧计费系统,网吧计费管理系统 - 源码下载|Windows编程|其他小程序|源代码 - 源码中国...
  8. 基于JAVA+Servlet+JSP+MYSQL的会议管理系统
  9. Excel2010学习笔记(二):公式函数篇
  10. 一个 JS 框架需要做什么
  11. C++day02 学习笔记
  12. 倾斜摄影模型(.osgb)中心点位置的确定方法(SuperMap idesktop)
  13. SCDM学习笔记(2)
  14. 计算机网络病毒防范,计算机网络病毒的十项防范措施
  15. 谷物割捆一体农用车系统整体设计
  16. cer pem 证书转换_Cer Crt Pem Pfx 证书格式转换
  17. 文章引言--森林干扰--rse
  18. linux startx无效_startx命令_Linux startx 命令用法详解:用来启动X Window
  19. 百度api英文验证码
  20. [Java]String类基础知识与常用方法总结

热门文章

  1. C# Http请求偶尔超时+总结各种超时死掉的可能和相应的解决办法
  2. vc++6.0:MFC写的一个汉字取模软件(附源码)
  3. VUE3设置菜单进行子路由跳转,使页面在指定路由标签中加载
  4. 神经网络问答生成最全模型、策略、应用相关论文、资源、评测整理分享
  5. 微信公众号消息推送流
  6. docker stop rm rmi 命令
  7. bertkera的文本分类的小项目
  8. MyBatis动态标签
  9. 【实战】支付宝营销策略——ABtest
  10. 如何设置html打印区域大小,excel如何设置打印区域