• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SMS API for swing Application

 
Ranch Hand
Posts: 172
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 172
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also please tell me if I can use RMI technique in this? If yes then how would I do that?
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you google what SMS APIs are out there?

Would the admins please move this to proper forum, clearly not about servlets. Thanks.
 
Pranit Sonawane
Ranch Hand
Posts: 172
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(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.
reply
    Bookmark Topic Watch Topic
  • New Topic