Two Laptop Bag
The moose likes Java in General and the fly likes SMS API for swing Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "SMS API for swing Application" Watch "SMS API for swing Application" New topic

SMS API for swing Application

Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 171

I dont have any code to display today. But I need you to enlighten my knowledge today about an sms API which can be embedded in a swing application. Please read my wuestion below and help me out. Thanks for any help.

Hi all I have a swing application ready up n running but now I need to add an sms API to it. so that the user can send an sms using the database. Like the phone numbers will be fetched from database and user will pick multiple number at time and send sms / announcements. How can I do that. Any suggestions please. Need help about this
Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 171

Also please tell me if I can use RMI technique in this? If yes then how would I do that?
K. Tsang

Joined: Sep 13, 2007
Posts: 3132

Did you google what SMS APIs are out there?

Would the admins please move this to proper forum, clearly not about servlets. Thanks.

K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 171

this is the code I have developed and it throws as exception as

Server returned HTTP response code: 400 for URL:

Please tell me where am I going wrong?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
(Moving to this forum, since the question has nothing to do with Swing. Please CarefullyChooseOneForum in the future.)

No, it has nothing to do with RMI. The mechanics depend entirely on the provider you have signed up with. They should have a section on their web site where you can find the details, maybe even sample code.

A 400 response code means that the request was not correct - you may have missed a parameter, or the request was otherwise malformed. Again, the provider should provide you with the details about how to access their service.

I strongly advise to use a proper HTTP client library like Apache HttpClient that does all the nitty gritty stuff for you.
I agree. Here's the link:
subject: SMS API for swing Application
It's not a secret anymore!