This document provides the technical details of the XML based SMS API for the FEBNO SMS Engine Suite.This API is provided for customers to use any standard software development application to send Multi SMS Messages through the Gateway. This protocol is best suited for offline application who wishes to send messages by calling the function each time.
Any standard software development tool can be used to use the XML API. The following are the steps required to send a message.
Create an XML message using the format specified
Send the XML to the http URL provided as a Form Data
Receive the XML response and check the status of the request
Recommended to input 100 records in single XML.
User validation is done using the user id and password specified in the XML element
XXXX@febnosms.com XXXXXXXX@@@@@
XXXXXXXXXMOBILE1, XXXXXXXXXMOBILE2, XXXXXXXXXMOBILE3
XXXXXXX Msg1 0
XXXXXXXXXMOBILE4 Msg2 1
The URL to post is http://www.febnosms.com/ClientAPIV3/SubmitMultiXML.aspx
XXXXXXXXXMOBILE1 2007XXXXXXX OK
0507351903 XXXXXXXXXMOBILE2 OK
Error
Dim strXML As StringDim txtResponse As String
strXML = ""strXML = strXML & "XXXXXXXX "strXML = strXML & "XXXXXX"strXML = strXML & "adsmall11 "strXML = strXML & ""strXML = strXML & "055XXXXXXXX "strXML = strXML & "Msg1 "strXML = strXML & "0 "strXML = strXML & "055XXXXXXXX "strXML = strXML & "Msg2 "strXML = strXML & "1 "strXML = strXML & " "
txtResponse = ""Dim strURL As String
strURL = "http://www.febnosms.com/ClientAPIV3/SubmitMultiXML.aspx"
Dim objWebResponse As HttpWebResponse = NothingDim objStreamWriter As StreamWriter = NothingDim objStreamReader As StreamReader = NothingDim objWebRequest As HttpWebRequest = Nothing
objWebRequest = DirectCast(WebRequest.Create(strURL), HttpWebRequest)objWebRequest.Method = "POST"objWebRequest.ContentType = "text/plain"
objStreamWriter = New StreamWriter(objWebRequest.GetRequestStream())objStreamWriter.Write(strXML)objStreamWriter.Flush()objStreamWriter.Close()
objWebResponse = DirectCast(objWebRequest.GetResponse(), HttpWebResponse)objStreamReader = New StreamReader(objWebResponse.GetResponseStream())txtResponse = objStreamReader.ReadToEnd()
txtResponseTxt.Text = txtResponse
© febnosms.com – Bulk SMS Marketing Solution. Powered by FEBNO