Esempio n. 1
0
 protected void onSoapAsyncClick(object sender, EventArgs e)
 {
     const string   username   = "******";
     const string   password   = "******";
     const string   from       = "5000...";
     const string   to         = "09123456789";
     const string   text       = "تست وب سرویس ملی پیامک";
     const bool     isFlash    = false;
     SendSoapClient soapClient = new SendSoapClient();
     var            result     = soapClient.SendSimpleSMS2Async(username, password, to, from, text, isFlash);
 }
Esempio n. 2
0
        public async Task <ActionResult> SoapAsync()
        {
            const string   username   = "******";
            const string   password   = "******";
            const string   from       = "5000...";
            const string   to         = "09123456789";
            const string   text       = "تست وب سرویس ملی پیامک";
            const bool     isFlash    = false;
            SendSoapClient soapClient = new SendSoapClient();
            var            result     = await soapClient.SendSimpleSMS2Async(username, password, to, from, text, isFlash);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }