Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to develop website for sending SMS

 
Selva Prakash
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
i like to develope an website to sending sms.. for this any special services to be enabled in web server or it is like normal website hosting..
please share your knowledge...
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The hardest part will be to find a way to send the SMS messages. This will be just as hard from a website / web application as it is from a desktop application. You either need a connection to a physical phone or telephone system that allows sending SMS, or use a third party that sends SMS messages if you send a request. ASPSMS is one such third party we use at my work. It's not free though, and I don't think you will be able to find a free one - it simply costs money to send SMS messages.
 
Selva Prakash
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you say , what are the jar files we need to use?, i couldnt get jar files
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd think that whatever provider you end up choosing would have instructions on all the development details as part of their SDK or web site.
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ASPSMS does not have JAR files. They have a full specification that includes how to build an XML request. This request is then sent through HTTP POST to their server, and you receive an XML document back.

I've written a little wrapper around it at my work. Now I can't give you the full code*, but in summary it works like this:
The copying and reading is quite easy; it's little more than using a Reader to read, then copy the chars read to a Writer. Check out classes InputStreamReader and OutputStreamWriter to convert the connection's streams into a Reader/Writer.

The building of the XML string and parsing the result are the hard parts, but even those are not that hard. The XML string can be created using StringBuilder. The parsing can be done using any XML library like JDOM.


*
1) we are NotACodeMill.
2) the code belongs to my company, not to me. I can't just post it anywhere without approval.
 
Selva Prakash
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic