File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "SMS API for swing Application" Watch "SMS API for swing Application" New topic
Author

SMS API for swing Application

Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 149

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
Thanks.!
Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 149

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

Joined: Sep 13, 2007
Posts: 1966
    
    7

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/OCM-JD OCPJP7
Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 149



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

Server returned HTTP response code: 400 for URL: http://www.way2sms.com/FirstServletsms?custid=

Please tell me where am I going wrong?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
(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.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SMS API for swing Application
 
Similar Threads
hOW CAN I SEND AN SMS
Sms web application
Problem: Send Receive SMS in one midlet
Need to Invoke a Java Program from a trigger
How to send /receive SMS using the siemens tool kit