Im new in Java. I have a task in my job to create a Java application that will forward messages to a gateway that will send it out as SMS messages (to the phone number of other employees of my firm). I think that HTTP is the simplest method to send data from one application to another. As I know Java has native method calls to submit HTTP requests. I will post the messages through HTTP GET or HTTP POST method to the gateway. I also found a gateway that will probaly suit my needs (if you are interested you can google: SMS Gateway - Java SMS API, Java database sms example) but I am not sure this is the best way. Do you think HTTP GET an POST is the proper way? Do you have any recommendations to my project?
I think you have followed the correct process, but just to make sure, here's what you should do:
(1) Find a supplier who will allow you to send SMS through their system.
(2) Find out what methods they support to send those SMS.
(3) Implement your application using one of those methods.
Now it looks like you did (1), but you didn't say that you did (2). So if the supplier doesn't support HTTP, but it supports some other method of communication, then choosing HTTP would be the wrong thing to do.
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.