




Delphi短信接口開發(fā)示例代碼.docx 免費(fèi)下載
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
//接口類型:互億無線觸發(fā)短信接口,支持發(fā)送驗(yàn)證碼短信、訂單通知短信等。//賬戶注冊(cè):請(qǐng)通過該地址開通賬戶/new/register.html//注意事項(xiàng)://(1)調(diào)試期間,請(qǐng)使用用系統(tǒng)默認(rèn)的短信內(nèi)容:您的驗(yàn)證碼是:【變量】。請(qǐng)不要把驗(yàn)證碼泄露給其他人。//(2)請(qǐng)使用用戶名及APIkey來調(diào)用接口,APIkey在會(huì)員中心可以獲??;//(3)該代碼僅供接入互億無線短信接口參考使用,客戶可根據(jù)實(shí)際需要自行編寫;//************************************************************************////Thetypesdeclaredinthisfileweregeneratedfromdatareadfromthe//WSDLFiledescribedbelow://WSDL:http://106./webservice/sms.php?wsdl//>Import:http://106./webservice/sms.php?wsdl:0//Encoding:utf-8//Version:1.0//(2013/11/2610:37:24--$Rev:10138$)//************************************************************************//unitsms;interfaceusesInvokeRegistry,SOAPHTTPClient,Types,XSBuiltIns;constIS_OPTN=$0001;IS_REF=$0080;type//************************************************************************////Thefollowingtypes,referredtointheWSDLdocumentarenotbeingrepresented//inthisfile.Theyareeitheraliases[@]ofothertypesrepresentedorwerereferred//tobutnever[!]declaredinthedocument.Thetypesfromthelattercategory//typicallymaptopredefined/knownXMLorBorlandtypes;however,theycouldalso//indicateincorrectWSDLdocumentsthatfailedtodeclareorimportaschematype.//************************************************************************////!:int-"/2001/XMLSchema"[Gbl]//!:string-"/2001/XMLSchema"[Gbl]//!:srting-"/2001/XMLSchema"[Gbl]SubmitResult=class;{"http://106./"[GblCplx]}ChangePasswordResult=class;{"http://106./"[GblCplx]}GetNumResult=class;{"http://106./"[GblCplx]}VersionInfoResult=class;{"http://106./"[GblCplx]}//************************************************************************////XML:SubmitResult,global,//Namespace:http://106.///************************************************************************//SubmitResult=class(TRemotable)privateFcode:Integer;Fmsg:WideString;Fsmsid:Integer;publishedpropertycode:IntegerreadFcodewriteFcode;propertymsg:WideStringreadFmsgwriteFmsg;propertysmsid:IntegerreadFsmsidwriteFsmsid;end;//************************************************************************////XML:ChangePasswordResult,global,//Namespace:http://106.///************************************************************************//ChangePasswordResult=class(TRemotable)privateFcode:Integer;Fmsg:WideString;publishedpropertycode:IntegerreadFcodewriteFcode;propertymsg:WideStringreadFmsgwriteFmsg;end;//************************************************************************////XML:GetNumResult,global,//Namespace:http://106.///************************************************************************//GetNumResult=class(TRemotable)privateFcode:Integer;Fmsg:WideString;Fnum:Integer;publishedpropertycode:IntegerreadFcodewriteFcode;propertymsg:WideStringreadFmsgwriteFmsg;propertynum:IntegerreadFnumwriteFnum;end;//************************************************************************////XML:VersionInfoResult,global,//Namespace:http://106.///************************************************************************//VersionInfoResult=class(TRemotable)privateFmsg:WideString;publishedpropertymsg:WideStringreadFmsgwriteFmsg;end;//************************************************************************////Namespace:http://106.///soapAction:http://106./%operationName%//transport:/soap/http//style:document//binding:smsSoap//service:sms//port:smsSoap//URL:http://106./webservice/sms.php?smsService//************************************************************************//smsSoap=interface(IInvokable)['{228902AE-4B53-39C9-05CA-F389FEE82174}']functionSubmit(constaccount:WideString;constpassword:WideString;constmobile:WideString;constcontent:WideString):SubmitResult;stdcall;functionChangePassword(constaccount:WideString;constpassword:WideString;constnewpassword:WideString):ChangePasswordResult;stdcall;functionGetNum(constaccount:WideString;constpassword:WideString):GetNumResult;stdcall;functionVersionInfo:VersionInfoResult;stdcall;end;functionGetsmsSoap(UseWSDL:Boolean=System.False;Addr:string='';HTTPRIO:THTTPRIO=nil):smsSoap;implementationusesSysUtils;functionGetsmsSoap(UseWSDL:Boolean;Addr:string;HTTPRIO:THTTPRIO):smsSoap;constdefWSDL='http://106./webservice/sms.php?wsdl';defURL='http://106./webservice/sms.php?smsService';defSvc='sms';defPrt='smsSoap';varRIO:THTTPRIO;beginResult:=nil;if(Addr='')thenbeginifUseWSDLthenAddr:=defWSDLelseAddr:=defURL;end;ifHTTPRIO=nilthenRIO:=THTTPRIO.Create(nil)elseRIO:=HTTPRIO;tryResult:=(RIOassmsSoap);ifUseWSDLthenbeginRIO.WSDLLocation:=Addr;RIO.Service:=defSvc;RIO.Port:=defPrt;endelseRIO.URL:=Addr;finallyif(Result=nil)and(HTTPRIO=nil)thenRIO.Free;end;end
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 依法治教各項(xiàng)管理制度
- 促銷人員現(xiàn)場管理制度
- 保安企業(yè)積分管理制度
- 保安公司各種管理制度
- 保安制度物品管理制度
- 保安車輛停放管理制度
- 保定高校疫情管理制度
- 保密材料使用管理制度
- 保潔公司臺(tái)賬管理制度
- 保潔用品存放管理制度
- FFU龍骨吊頂防墜研究及應(yīng)用-2023.12.11王國棟修
- 多層鋼結(jié)構(gòu)廠房施工方案
- 知道網(wǎng)課智慧《藝術(shù)與科學(xué)理論基礎(chǔ)》測(cè)試答案
- 清拆勞務(wù)合同范本
- DL-T5366-2014發(fā)電廠汽水管道應(yīng)力計(jì)算技術(shù)規(guī)程
- (高清版)JTST 273-2024 水運(yùn)工程測(cè)量定額
- 《紙牌國》閱讀指導(dǎo)
- 公路工程設(shè)計(jì)設(shè)計(jì)的質(zhì)量保證措施、進(jìn)度保證措施
- 【同步訓(xùn)練】《血液循環(huán)-體循環(huán)和肺循環(huán)》(解析版)
- 智能護(hù)理數(shù)字化驅(qū)動(dòng)醫(yī)護(hù)智能管理
- 小學(xué)數(shù)學(xué)《比例》大單元教學(xué)設(shè)計(jì)
評(píng)論
0/150
提交評(píng)論