//接口类型:互亿无线触发短信接口,支持发送验证码短信、订单通知短信等。//账户注册:请通过该地址开通账户 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;const IS_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) private Fcode: Integer; Fmsg: WideString; Fsmsid: Integer; published property 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) private Fcode: Integer; Fmsg: WideString; published property 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) private Fcode: Integer; Fmsg: WideString; Fnum: Integer; published property 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) private Fmsg: WideString; published property 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;implementation uses SysUtils;function GetsmsSoap(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): smsSoap;const defWSDL = ‘http://106.ihuyi.com/webservice/sms.php?wsdl’; defURL = ‘http://106.ihuyi.com/webservice/sms.php?smsService’; defSvc = ‘sms’; defPrt = ‘smsSoap’;var RIO: THTTPRIO;begin Result := nil; if (Addr = ”) then begin if UseWSDL then Addr := defWSDL else Addr := defURL; end; if HTTPRIO = nil then RIO := THTTPRIO.Create(nil) else RIO := HTTPRIO; try Result := (RIO as smsSoap); if UseWSDL then begin RIO.WSDLLocation := Addr; RIO.Service := defSvc; RIO.Port := defPrt; end else RIO.URL := Addr; finally if (Result = nil) and (HTTPRIO = nil) then RIO.Free; end;end;initialization InvRegistry.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.
相关推荐
淘宝工厂店的东西是正品吗?淘宝工厂店为什么便宜
淘工厂直营店其实就是链接淘宝卖家与工厂的平台,直接对接工厂型的商家,店铺里的东西大部分价格都会很低。那么,淘工厂直营店靠谱吗? 淘工厂直营店是靠谱的,但售后问题可能得不到很好的保障…
2022年11月27日0存储过程语法(sql server存储过程语法)
今天小编给各位分享存储过程语法的知识,其中也会对sql server存储过程语法进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧! oracle存储过程基本语法…
2022年11月26日0工商银行:已为客户开立个人养老金资金账户
南方财经11月25日电,刚刚,21世纪经济报道记者收到工商银行短信,称“尊敬的客户,您已成功开立工商银行个人养老金资金账户,尾号为****,如有疑问,请及时联系我行客服热线9558…
2022年11月26日0数字看亮点!前十月我国造船三大指标继续全球领先
央视网消息:工业和信息化部最新数据显示,今年1—10月,我国造船三大指标继续保持全球领先。随着生产节奏加快,船企产业集中度进一步提升。 2022年1—10月,全国造船完工量、新接订…
2022年11月25日0前十个月我国造船业三大指标稳居世界第一
今年1—10月,我国造船业在国际市场的份额继续稳居世界第一。一批高技术高附加值船舶实现了批量接单、批量生产。 近日,中国船舶上海船舶研究设计院又新接了韩国船东三艘汽车运输船的设计追…
2022年11月25日0客服的岗位职责怎么写(客服工作内容及职责)
各位小伙伴们大家周一好,又到了每周一给大家分享干货内容的时候啦~ 本期来跟大家分享一下客服工作管理流程以及客服岗位里面的每项职能岗位的核心细则,也是干货满满推荐收藏~ 一.补偿流程…
2022年11月25日0商家收到货才会退款吗(淘宝代付款退款钱到哪里了)
在淘宝上有一些人下单购买商品的时候是通过代付的形式来支付的,一般情况下是家长帮助家里的小孩或者长辈进行代付,而代付订单和普通的订单没有太大的区别,不过如果发生退款的话,钱是退到哪里…
2022年11月25日0淘宝直播开通后带货链接怎么做(淘宝直播需要开通淘宝店铺吗)
直播带货无论是对于商家来说还是主播收益都是非常可观的,所以不少平台都有直播带货功能,一些小伙伴也想加入淘宝直播,那么淘宝直播开通后带货链接怎么做?下面小编为大家带来淘宝直播开通后带…
2022年11月24日0成都健康码打不开显示接口请求未知异常怎么办(成都健康码打不开显示接口请求未知异常)
成都这几天的疫情也是备受关注,疫情期间各地出行都是需要查看健康码的,不过今天却有成都的小伙伴反馈健康码无法打开的情况。成都健康码打不开显示接口请求未知异常怎么办?由于健康码无法打开…
2022年11月24日0电商打单是什么意思 打单软件哪个好
在电商行业当中,打单配货方式分为前置打单和后置打单。两者之前其实是有区别的,那今天小编就来跟大家说说。 一、前置打单和后置打单的区别 一般电商行业用的打单发货的方式其实都是前置打单…
2022年11月23日0