·Î±×ÀÎ | ȸ¿ø°¡ÀÔ | °í°´¼¾ÅÍ | ³»¼­ºñ½º°ü¸®
    • ¾ÆÀ̵ð ÀúÀå

SMSÈ£½ºÆÃÀ̶õ??
SMSÈ£½ºÆÃ
- ¿ä±Ý ¹× ½ÅûÀýÂ÷
- ½ºÆÔµ¿ÀǼ­
- ½ÅûÇϱâ
SMS±¸ÃàÇϱâ
- ASP±¸Ãà
- PHP±¸Ãà
- ´å³Ý±¸Ãà
°£Æíº¸³»±â
SMS ÅëÇÕ°ü¸®


³×ÀÓ¼­¹ö
È£½ºÆ® : ns1.webprime.co.kr
IPÁÖ¼Ò : 220.73.163.59
È£½ºÆ® : ns2.webprime.co.kr
IPÁÖ¼Ò : 112.175.148.241
ÀԱݾȳ»
¿ì¸®ÀºÇà : 111111111111111
¿¹±ÝÁÖ : À¥ÇÁ¶óÀÓ(ÁÖ)
SMSÈ£½ºÆà ÇöÀçÀ§Ä¡ Ȩ  >  SMSÈ£½ºÆà  >  ASP.NET ±¸Ãà

  ASP.NET ¿¡¼­´Â À¥ÂüÁ¶¸¦ ÅëÇÑ XML À¥¼­ºñ½º¸¦ ÀÌ¿ëÇÏ½Ã¸é ºü¸£°í °£´ÜÇÏ°Ô SMS¸¦ Àû¿ëÇϽǼö ÀÖ½À´Ï´Ù.
À¥ÂüÁ¶ ÁÖ¼Ò : http://webservice.webprime.co.kr/SMS.v.1/ServiceSMS.asmx
À¥ÂüÁ¶ ÁÖ¼Ò¶õ? Access Point¶ó°íµµ ÇÏ¸ç ¿ø°Ý¿¡¼­ ÇÔ¼öÈ£ÃâÀ» À§ÇØ ¼³Á¤ÇؾßÇÒ URL ÀÔ´Ï´Ù.
¿¹Á¦´Â Visual Studio 2005¸¦ ±âÁØÀ¸·Î ÀÛ¼º ÇÏ¿´À¸³ª 2003 °ú ÄÚµå»óÀÇ Â÷ÀÌ´Â ¾ø½À´Ï´Ù.

À¥ÇÁ·ÎÁ§Æ®¸¦ »ý¼ºÇÕ´Ï´Ù.
 
¼Ö·ç¼Ç Ž»ö±â¿¡¼­ ´ÙÀ½ ÁÖ¼Ò¸¦ ÀÌ¿ë À¥ÂüÁ¶¸¦ ÇÕ´Ï´Ù
 
¼Ö·ç¼Ç Ž»ö±â¿¡¼­ Ãß°¡µÈ À¥ÂüÁ¶ ÁÖ¼Ò¸¦ ¿øÇϽô °ªÀ¸·Î º¯°æÇØ Áֽñ⠹ٶø´Ï´Ù.
 
½ÇÁ¦ sms¹ß¼ÛÄڵ忡 ´ÙÀ½°ú °°ÀÌ À¥ÂüÁ¶°ªÀ» ÀÌ¿ë °´Ã¼¸¦ »ý¼ºÇÏ¿©, ½ÇÁ¦ ¼­ºñ½º¸¦ ÀÌ¿ëÇÕ´Ï´Ù
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Security;

public partial class _Default : System.Web.UI.Page
{
string sms_id = "smsid"; //ºÎ¿© ¹ÞÀº SMS ¾ÆÀ̵𸦠³ÖÀ¸½Ê½Ã¿ä.
string sms_pwd = "smspwd"; //ºÎ¿© ¹ÞÀº SMS Æнº¿öµå¸¦ ³ÖÀ¸½Ê½Ã¿ä.
protected void Page_Load(object sender, EventArgs e)
{
string result = "";

kr.co.webprime.webservice.ServiceSMS oSoap = new kr.co.webprime.webservice.ServiceSMS();

//GetRemainCount ¸Þ¼Òµå¸¦ ÅëÇØ SMS ÀÜ¿©·®À» üũÇÕ´Ï´Ù.
Label1.Text = oSoap.GetSMSCount(sms_id, sms_pwd).ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
string result = "";
string rcv_number = TextBox1.Text;
string snd_number = TextBox2.Text;
string sms_content = TextBox3.Text;

//SendSMS¸Þ¼Òµå¸¦ ÅëÇؼ­ SMS ¹ß¼ÛÇÕ´Ï´Ù.
result=oSoap.SendSMS(sms_id,sms_pwd,rcv_number,snd_number,sms_content);

//ÀÌÇÏ °á°ú°ªÀ» ó¸®ÇØ ÁÝ´Ï´Ù.
//* º» ¸®ÅÏ°ªÀº SMSÀü¼Û ¿äûÀÌ ¼º°øµÇ¾ú´Â°¡¿¡ ´ëÇÑ ¿äûÀÌ¸ç ½ÇÁ¦ ÈÞ´ëÆù °¡ÀÔÀÚÀÇ ¼ö½Å¿©ºÎ´Â
//¾Æ´Õ´Ï´Ù. ½ÇÁ¦ ÈÞ´ëÆù °¡ÀÔÀÚÀÇ ¼ö½Å¿©ºÎ´Â ³Ê³ª¿ì¸® »çÀÌÆ® ¹ß¼Û³»¿ª ¸Þ´º¿¡¼­ È®ÀÎ ÇÕ´Ï´Ù.
//1 : ¹ß¼Û¼º°ø
//1~N : ÄÞ¸¶·Î ¿¬°áÇÏ¿© ´ÙÁß ¹ß¼ÛÀ» ÇÏ¿´À» °æ¿ì¿¡´Â ¼º°øÇÑ Á¤¼ö ¼ýÀÚ·Î ¸®Åϵ˴ϴÙ.
//0 : SMS¹ß¼Û °¡´É·® ºÎÁ·
//-1 : »ç¿ëÀÚ ¾ÆÀ̵ð ÀÌ»ó
}
}

oSOAP °´Ã¼°¡ Á¦°øÇÏ´Â ¸â¹öÇÔ¼ö´Â SendSMS() ,SendSMSReserve(),GetSMSCount() ¼¼°¡Áö ÀÔ´Ï´Ù.

(1) Áï½ÃÀü¼Û:
SendSMS("sms¾ÆÀ̵ð","smsºñ¹Ð¹øÈ£","º¸³»´Â»ç¶÷¹øÈ£","¹Þ´Â»ç¶÷¹øÈ£","´Ü¹®³»¿ë")
-´Ü¹®¸Þ½ÃÁö¸¦ Áï½Ã º¸³»´Â ¹æ¹ýÀÔ´Ï´Ù.
-°°Àº ³»¿ëÀ» ¿©·¯¸í¿¡°Ô ÇѲ¨¹ø¿¡ º¸³»½Ç °æ¿ì¿¡´Â ¹Þ´Â »ç¶÷ ÇÚµåÆù ¹øÈ£¸¦ ÄÞ¸¶(,)·Î ¿¬°áÇØ Áֽʽÿä.
¿¹1) SendSMS("test","test","0167222244","0182245555","¾È³çÇϼ¼¿ä");
¿¹2) SendSMS("test","test","0167222244","0182245555,0171224444,01033445556","¾È³çÇϼ¼¿ä");

(2) ¿¹¾àÀü¼Û:
SendSMSReserve("sms¾ÆÀ̵ð","smsºñ¹Ð¹øÈ£","º¸³»´Â»ç¶÷¹øÈ£","¹Þ´Â»ç¶÷¹øÈ£","´Ü¹®³»¿ë","¿¹¾à½Ã°£")
-´Ü¹®¸Þ½ÃÁö¸¦ ¿¹¾à½Ã°£¿¡ º¸³»´Â ¹æ¹ýÀÔ´Ï´Ù.
-¿¹¾à½Ã°£Àº yyyy-mm-dd hh:mm:ss Çü½ÄÀ¸·Î ÀÔ·ÂÇÕ´Ï´Ù.
-°°Àº ³»¿ëÀ» ¿©·¯¸í¿¡°Ô ÇѲ¨¹ø¿¡ º¸³»½Ç °æ¿ì¿¡´Â ¹Þ´Â »ç¶÷ ÇÚµåÆù ¹øÈ£¸¦ ÄÞ¸¶(,)·Î ¿¬°áÇØ Áֽʽÿä.
¿¹) SendSMSReserve("test","test","0167222244","0182245555","¾È³çÇϼ¼¿ä","2005-11-01 13:40:00");<--2005³â11¿ù 1ÀÏ 13½Ã 40ºÐ ¹ß¼Û


(3) ÇöÀç ÀÜ¿©·® Á¶È¸
GetSMSCount("sms¾ÆÀ̵ð","smsºñ¹Ð¹øÈ£")
-Çö sms_id¿¡ ÀÜ¿©·®À» Á¶È¸ÇÒ¼ö ÀÖ´Â ¹æ¹ýÀÔ´Ï´Ù.
¿¹) GetRemainCount("sms¾ÆÀ̵ð","test");
¸®ÅÏ°ª : 0 ÀÌ»ó Á¤¼ö : ÀÜ¿©·®ÀÌ ¸®Åϵ˴ϴÙ.
-1 : ¾ÆÀ̵ð Æнº¿öµå°¡ ÀÌ»óÀÌ ÀÖÀ»¶§ ¸®Åϵ˴ϴÙ.
 
¸®ÅÏ°ª ¹× °á°ú È®ÀÎ
¸â¹öÇÔ¼ö SendSMS() °¡ È£ÃâµÈ ÈÄ ¸®ÅÏ°ªÀº ´ÙÀ½°ú °°Àº °ªÀ» °¡Áý´Ï´Ù.

* º» ¸®ÅÏ°ªÀº SMSÀü¼Û ¿äûÀÌ ¼º°øµÇ¾ú´Â°¡¿¡ ´ëÇÑ ¿äûÀÌ¸ç ½ÇÁ¦ ÈÞ´ëÆù °¡ÀÔÀÚÀÇ ¼ö½Å¿©ºÎ´Â
¾Æ´Õ´Ï´Ù. ½ÇÁ¦ ÈÞ´ëÆù °¡ÀÔÀÚÀÇ ¼ö½Å¿©ºÎ´Â ¹ß¼Û³»¿ª¿¡¼­ È®ÀÎ ÇÕ´Ï´Ù.
1 : ¹ß¼Û¼º°ø
1~N : ÄÞ¸¶·Î ¿¬°áÇÏ¿© ´ÙÁß ¹ß¼ÛÀ» ÇÏ¿´À» °æ¿ì¿¡´Â ¼º°øÇÑ Á¤¼ö ¼ýÀÚ·Î ¸®Åϵ˴ϴÙ.
0 : SMS¹ß¼Û °¡´É·® ºÎÁ·
-1 : »ç¿ëÀÚ ¾ÆÀ̵ð ÀÌ»ó

ȸ»ç¼Ò°³|Á¦ÈÞ¹®ÀÇ|ã¾Æ¿À½Ã´Â±æ|°³ÀÎÁ¤º¸Ãë±Þ¹æħ|¼­ºñ½ºÀÌ¿ë¾à°ü