WebService短信接口开发指南_验证码短信接口教程 2019-01-03 21:55:39 分类:公司动态
文章标签| 短信平台| 验证码短信接口平台| 群发短信平台| 106短信平台| 国际短信验证码接口|
接口说明:客户接口部分提供http url方式的接口,根据客户需求可以提供相应接口,接口编码方式采用统一的UTF-8如果接口地址有变,请根据实际修改接口地址

WebService开发指南

 

    WebService针对软件开发和系统集成商提供移动商务的接入WebService具有稳定、跨平台、跨开发语言、穿透防火墙等特点因此深受企业开发亲睐。适应 WEB、VB 、Delphi、.NET、VC 、 JAVA 等多种主流开发语言及 Windows 、Linux 、Unix 等运行环境的短信通讯开发接口,让企业的 OA 、CRM 、ERP 、SCM 等系统快速、轻松实现移动商务应用。
适用于

   1. CRM、ERP、OA、SCM软件系统
   2. 网站 B2B、B2C类
   3. 系统集成商
   4. 中间件开发商
   5. ……


典型应用:


 

●与Web嵌入   ● 与OA嵌入  ●与ERP嵌入  ● 与CRM嵌入● 软件开发商嵌入 ...

一、 基本概况

 

WebService短信接口开发指南

 

 

 

   

1、实例化对象(ASP.NET 示例)

 

a.第一步添加引用

 

 Webservice地址: http://service2.winic.org:8003/Service.asmx

b.创建对象WebService.Service1 ws = new  

WebService.Service1();

2、GetUserInfo

 


功能描述:读取用户账户信息。参数说明

 

 

短信接口参数

 

 

返回数据:

  <?xml version="1.0" encoding="utf-8" ?>
 
  <string xmlns="http://tempuri.org/">000/liugang123/310014.7000/0.1000/56/【速码云信息科技有限公司】/0.2000/0.3000/0.3000/winic/速码云信息科技有限公司/刘江/13580305095</string>

返回解释:


000/liugang123/310014.7000/0.1000/56/【速码云信息科技有限公司】/0.2000/0.3000/0.3000/winic/速码云信息科技营销公司有限公司/刘江/13580305095


000/用户名/余额/短信单价/短信字符数/签名/语音短信单价/传真单价/彩信单价/
所属经销商/公司名/联系人/联系方式

 

-03为帐号不存在或者密码错误


Asp.net示例

WebService.Service1 ws = new WebService.Service1();
  txtResult.Text=ws.GetUserInfo(用户名, 密码);

3、SendFax

 

功能描述:发送传真接口


参数说明

 

短信验证码接口调用示例

 

 

免费短信接口程序

 

 

返回一个信息编号(16位)


返回只要不是返回 “负数” (一串编号是成功)就是成功

 <?xml version="1.0" encoding="utf-8" ?>
  <string xmlns="http://tempuri.org/">0808191530315347</string>
   
Asp.net示例


WebService.Service1 ws = new WebService.Service1();
  byte[] buffer = new byte[0];
        if (fupFaxFilePath.FileName == "")
        {
        
            txtResult.Text="传真文件不能为空";
            return;
        }
        else
        {
            FileStream fs = new FileStream(fupFaxFilePath.PostedFile.FileName, FileMode.Open); //Client Side Path
            buffer = new byte[fs.Length];
            fs.Read(buffer, 0, buffer.Length);
            fs.Close();

        }

        string filename = fupFaxFilePath.PostedFile.FileName;
             
        WebService.Service1 ws = new WebService.Service1();
       
        try
        {

            this.txtResult.Text = ws.SendFax(txtUID.Text, txt_PWD.Text,txtFaxNO.Text, txtMen.Text,txtTitle.Text, buffer, filename);

        }
        catch
        {
        }

 finally
        {
            //   fs.Close();
        }