aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes how to develop website for sending SMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "how to develop website for sending SMS" Watch "how to develop website for sending SMS" New topic
Author

how to develop website for sending SMS

Selva Prakash
Ranch Hand

Joined: Sep 03, 2009
Posts: 41
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

Joined: Oct 27, 2005
Posts: 19761
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Selva Prakash
Ranch Hand

Joined: Sep 03, 2009
Posts: 41
can you say , what are the jar files we need to use?, i couldnt get jar files
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42612
    
  65
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.


Ping & DNS - my free Android networking tools app
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19761
    
  20

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

Joined: Sep 03, 2009
Posts: 41
thanks....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to develop website for sending SMS