调用WebServices接口实现短信收发

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using SMS.cn.woxp.gateway;
using System.IO;
using System.Xml;
namespace SMS
{
    /*采用web Service接口实现短信收发
     * 本程序适合网关版本v1.0开发
     本演示代码由星幻科技提供.如有其它问题请与我们联系.
     * 如果发送失败原因与通道有关.可能是由于某些原因导致通道关闭.请切换其它通道使用
     * 短信通道发送出现延时比较长.建议切换通道发送.[任何短信网关都会出现短信延时.请谅解]
     * -----------------------------------------------------------------
     * 本演示代码由[星幻科技 www.woxp.cn]提供,最新接口请登陆会员中心查看
     * -----------------------------------------------------------------
     */
    public partial class Form1 : Form
    {
        private cn.woxp.gateway.WebSMS wsms = new SMS.cn.woxp.gateway.WebSMS();
        private string strIdentity = "";
        public Form1()
        {
            InitializeComponent();
        }

        private void label7_Click(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {          
            this.l_money.Text = "0.00";
        }
        private bool CheckGate()
        {
            int temp = 0;
            if (this.t_eid.Text.ToString().Trim() == "" || this.t_gateid.Text.ToString().Trim() == "" || this.t_pwd.Text.ToString().Trim() == "" || this.t_uid.Text.ToString().Trim() == "")
            {
                MessageBox.Show("网关参数输入不全!请重新输入", "网关参数配置", MessageBoxButtons.OK, MessageBoxIcon.Error)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值