DirectSms
Àüü ÀÛ¾÷ ¸ñ·ÏÀ» º¸·Á¸é ¿©±â¸¦ Ŭ¸¯ÇϽʽÿÀ.
SendSms
¼³¸í : SMS¸¦ º¸³»±â À§ÇØ ´ÙÀÌ·ºÆ® °í°´ÀÌ »ç¿ëÇÏ´Â ¸Þ¼Òµå
¼±¾ð¹® : string SendSms(string stran_phone, string stran_callback, string stran_date, string stran_msg, string guest_no, string guest_key)
- stran_phone : ¼ö½ÅÀÚ ÀüȹøÈ£(»ý·«ºÒ°¡), ¿©·¯¹øÈ£ÀÏ °æ¿ì¿¡´Â ;À¸·Î ±¸ºÐ, ÀüȹøÈ£ ±¸ºÐÀÚ ´ë½¬(-)´Â Àְųª ¾ø°Å³ª »ó°ü¾øÀ½
- stran_callback : ¼Û½ÅÀÚ ÀüȹøÈ£(»ý·«°¡´É)
- stran_date : ¿¹¾à Àü¼Û½Ã¿¡¸¸ »ç¿ë, Æ÷¸ËÀº ½ÃºÐ±îÁö Æ÷ÇÔµÈ ³¯Â¥ Æ÷¸Ë, »ý·«½Ã¿¡´Â Áï½Ã Àü¼Û(¿¹.2003-01-01 13:01)
- stran_msg : Àü¼Û ¸Þ½ÃÁö(»ý·«ºÒ°¡), Á¦ÇÑ»çÇ× : ÇѱÛÀº 40ÀÚ, ¿µ¹®80ÀÚ(¿ë·®ÀÌ ³ÑÀ¸¸é ©·Á¼ Àü¼ÛµË´Ï´Ù)
- guest_no : SMS È£½ºÆà ¼ºñ½º¹øÈ£(¿¹.000001)
- guest_key : °ü¸®ÀÚ°èÁ¤°ú ¾ÏÈ£¸¦ ÀÌ¿ëÇØ »ý¼ºÇÑ °í°´ À¯ÀÏ Å°(mydirect.co.krÀÇ °í°´Á¤º¸¿¡¼ È®ÀÎ °¡´É)
- ¹Ýȯ°ª : ¼º°ø½Ã(OK), ½ÇÆнÃ(¿¡·¯¸Þ½ÃÁö)
Å×½ºÆ®
HTTP POST ÇÁ·ÎÅäÄÝÀ» »ç¿ëÇÏ¿© ÀÛ¾÷À» Å×½ºÆ®ÇÏ·Á¸é [È£Ãâ] ´ÜÃ߸¦ Ŭ¸¯ÇϽʽÿÀ.SOAP 1.1
´ÙÀ½Àº »ùÇà SOAP 1.1 ¿äû ¹× ÀÀ´äÀÔ´Ï´Ù. Ç¥½ÃµÈ placeholders´Â ½ÇÁ¦ °ªÀ¸·Î ¹Ù²ã¾ß ÇÕ´Ï´Ù.
POST /DirectSms1.x/DirectSms.asmx HTTP/1.1 Host: webservice.direct.co.kr Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://webservice.direct.co.kr/DirectSms1.x/SendSms" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendSms xmlns="http://webservice.direct.co.kr/DirectSms1.x/"> <stran_phone>string</stran_phone> <stran_callback>string</stran_callback> <stran_date>string</stran_date> <stran_msg>string</stran_msg> <guest_no>string</guest_no> <guest_key>string</guest_key> </SendSms> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendSmsResponse xmlns="http://webservice.direct.co.kr/DirectSms1.x/"> <SendSmsResult>string</SendSmsResult> </SendSmsResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
´ÙÀ½Àº »ùÇà SOAP 1.2 ¿äû ¹× ÀÀ´äÀÔ´Ï´Ù. Ç¥½ÃµÈ placeholders´Â ½ÇÁ¦ °ªÀ¸·Î ¹Ù²ã¾ß ÇÕ´Ï´Ù.
POST /DirectSms1.x/DirectSms.asmx HTTP/1.1 Host: webservice.direct.co.kr Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <SendSms xmlns="http://webservice.direct.co.kr/DirectSms1.x/"> <stran_phone>string</stran_phone> <stran_callback>string</stran_callback> <stran_date>string</stran_date> <stran_msg>string</stran_msg> <guest_no>string</guest_no> <guest_key>string</guest_key> </SendSms> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <SendSmsResponse xmlns="http://webservice.direct.co.kr/DirectSms1.x/"> <SendSmsResult>string</SendSmsResult> </SendSmsResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
´ÙÀ½Àº »ùÇà HTTP GET ¿äû ¹× ÀÀ´äÀÔ´Ï´Ù. Ç¥½ÃµÈ placeholders¸¦ ½ÇÁ¦ °ªÀ¸·Î ¹Ù²Ù¾î¾ß ÇÕ´Ï´Ù.
GET /DirectSms1.x/DirectSms.asmx/SendSms?stran_phone=string&stran_callback=string&stran_date=string&stran_msg=string&guest_no=string&guest_key=string HTTP/1.1 Host: webservice.direct.co.kr
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://webservice.direct.co.kr/DirectSms1.x/">string</string>
HTTP POST
´ÙÀ½Àº »ùÇà HTTP POST ¿äû ¹× ÀÀ´äÀÔ´Ï´Ù. Ç¥½ÃµÈ placeholders¸¦ ½ÇÁ¦ °ªÀ¸·Î ¹Ù²Ù¾î¾ß ÇÕ´Ï´Ù.
POST /DirectSms1.x/DirectSms.asmx/SendSms HTTP/1.1 Host: webservice.direct.co.kr Content-Type: application/x-www-form-urlencoded Content-Length: length stran_phone=string&stran_callback=string&stran_date=string&stran_msg=string&guest_no=string&guest_key=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://webservice.direct.co.kr/DirectSms1.x/">string</string>