Nowsms with java | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through September 15, 2006 ⬆ |
◄ ► |
Author | Message | |||
shams nezami Unregistered guest |
Hi, I am a developer i want to send simple text sms using java through nowsms,i am able to send using the web interface provided with nowsms but i want to do it through a simple java program.Please help me.Waiting for your quick reply. | |||
seema naaz Unregistered guest |
If possible please send me a small java code to send a text sms using nowsms. Thanks in advance | |||
shirin khan Unregistered guest |
Hi, I want to send text sms using nowsms as gateway and java.Can anyone provide code for sending simple text sms using java and nowsms. Thanks in advance. | |||
Mohamed Salim ALI New member Username: Salim Post Number: 17 Registered: 04-2005 |
Hi Nezam, I have given you promise to many links regarding you request from my Email, but I thnk to give you my own way in API java documentation, but from my Email tomorrow, try this link http://support.nowsms.com/discus/messages/1/2008.ht ml and get more details before I give you the library in larg. in this last link http://www.ginque.com/TextMessaging/freetextmessagetomobilephone.htm, you will find more sample ways in java tools, and tomorow I will provide to you the document based in API tools. Regards//Salim. | |||
shams nezami Unregistered guest |
Hi, Every body i am able to send sms using java and nowsms but am not able to receive and process message. I want to receive message in a java class process the request and send a message. Please help me soon. I have these parameters set in nowsms. C:\WINDOWS\system32\cmd.exe /c C:\checksms.class @@SENDER@@ @@FULLSMS@@ shams nezami | |||
Mohamed Salim ALI New member Username: Salim Post Number: 18 Registered: 04-2005 |
Hi Nezami, I have send to you a pdf file from my email. your java code is correct but, if I understand well what you said, you don't receive SMS, follow these checking process: 1. In your Java code see the "String url = http://127.0.0.1:8800 write the same Ip url you have set in the Web tab of the NowSms, because i have faced the same problem, and when I change, the 127.0.0.1:8800 to my realy IP 192.168.1.2:8800, evry thing was ok, the why is because when a SMS or Echo message must be follown back, the NowSms must be reachable by the valid IP, or the 127.0.0.1 is an internal IP for any computer. 2. Check your GSM modem, if is Support receiving SMS, we have faced the same problem, we have used the Nokia 6630, and when we have changed it by Sony Ericson T630, we receive SMS in our SMS-In folder. you can cheik from the manufacturer of your GSM modem or Mobile. you can check again if after installed the drivers of the GSM modem you have in your NwSms directory, there are SMS-IN folder to be sure. 3. With command Echo, try to see if the mobile from which you try to send to your NowSms, if you can receive an Echo back show that the message was received by NowSms, the Echo will be the same message you send from your other mobile with a header "Echo" With these process let me know any more regarding what you have found. | |||
Lusi Thomet New member Username: Lusi Post Number: 1 Registered: 07-2005 |
Hi, I am searching also for a possibility to send a simple plaintext sms invoked by a java application over the nowsms gateway. Are there somewhere an API or code snippets available? thx, regards Lusi | |||
rakesh m New member Username: Rakeshm Post Number: 2 Registered: 07-2005 |
Hi All, I am trying to send the SMS through Web Interface of NOWSMS, but it is not reaching to mobile. I have few questions related to that: 1) Do I need to contact the service provider for that? What I did till now is: Step 1: Installed NOWSMS Gateway Step 2: Configured SMSC via HTTP Step 3: Tried to send the SMS message but fallied to receive on mobile. Can anyone help me what could be the possible problem? Thanks in advance Regards Rakesh | |||
Karunanayakage Nandana Padma Kumara Unregistered guest |
I want to send sms using java.what should i do? Give me the steps & java code for sending sms Thank u. Nandana | |||
Anonymous |
Try the following code from www.vsmsmail.com It will work if you are sending text messaging to either US or Canada Socket vsmssocket = new Socket("vsmsgateway.com",5000); //Copy and paste your license here String license = ""; //Phone number to send the text messaging to String phone_number = "4161112222"; //Your sms text goes here String msg = "Hello World"; try the following site for more info: http://www.vsmsmail.com/ http://www.vsmsmail.com/vsmsgateway.php | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 4688 Registered: 10-2002 |
I'm not a Java expert, but basically you perform an HTTP GET, with URL parameters specifying what you are trying to send. The URL parameters are described here: http://www.nowsms.com/documentation/ProductDocumentation/sending_messages/sendin g_text_messages.htm http://www.nowsms.com/documentation/ProductDocumentation/sending_messages/url_pa rameters_for_sending_messages.htm | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 4689 Registered: 10-2002 |
What SMSC interface did you configure via HTTP if you do not have an SMS service provider? If you want to use the HTTP SMSC interface, you need to configure it to connect to an SMS service provider that accepts SMS message submissions via HTTP. To avoid any potential confusion, I should explain that the Now SMS/MMS Gateway is a software product. NowSMS is not a bulk SMS service provider, and it is not a replacement for an SMS service provider. You will need a subscription to an SMS service provider, or a GSM modem, in order to send messages with NowSMS. See http://www.nowsms.com/whatisnowsms.htm | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 4690 Registered: 10-2002 |
More on Java and issuing an HTTP request ... I'm not a Java expert, but my understanding is that you should be able to use the URLConnection or HTTPURLConnection class to accomplish this. Search the web with a keyword of HTTPURLConnection, and you should get some examples of usage. I found one example here ... just leave out the bits where it sets proxy server and proxy port properties ... http://www.developer.com/java/other/article.php/1551421 The URL formats that you would use for issuing an HTTP GET request of the NowSMS server to send a message are described here: The URL parameters are described here: http://www.nowsms.com/documentation/ProductDocumentation/sending_messages/sendin g_text_messages.htm http://www.nowsms.com/documentation/ProductDocumentation/sending_messages/url_pa rameters_for_sending_messages.htm Also note that there is an Java example for sending MMS here: http://support.nowsms.com/discus/messages/485/1360.html (This MMS example uses the Apache HttpClient Java library.) | |||
welldonthaveit Unregistered guest |
hi arun | |||
karthikayan New member Username: Kharthik84 Post Number: 2 Registered: 10-2005 |
can anyone send me java code to send sms from pc. i am able to send thru nowsms interface, but i need to send thru a java program. its really urgent else i ll be screwed up by my team leader. help needed. can send to my id- kharthik84@inbox.com | |||
rituraj Unregistered guest |
I want to send sms using java.what should i do? Give me the steps & java code for sending sms pls help me as it is a part of my final year project . thnx for helping hand | |||
Le Tra My New member Username: Tramy_nu Post Number: 1 Registered: 12-2005 |
Hi All, I want to send und to receive text sms using nowsms as gateway and java. Can anyone provide code for sending simple text sms and receiving sms using java and nowsms. Thanks | |||
Fergal New member Username: Middle_of_road Post Number: 1 Registered: 02-2006 |
Could someone please post a simple java class for sending a http get request to Nowsms please. It would be much appreciate. | |||
sarath kumar New member Username: Sarath Post Number: 1 Registered: 02-2006 |
hi everyone I'M SARATH.I'M A B.TECH FINAL YR STUDENT.I'M DOING A PROJECT ON THE TOPIC SMS MAI NOTIFICATION ie SENDING SMS VIA MAIL.I'VE COMPLETED THE MAIL SERVER PART. CAN ANYONE HELP ME TO PROCEED.ALL SUGGESTIONS ARE WHOLE-HEARTEDLY WELCOMED. | |||
Fergal New member Username: Middle_of_road Post Number: 2 Registered: 02-2006 |
sample java code to connect with Nowsms for sending sms please. I've been looking at apache's HttpClient as well as java.net.URLConnection, but getting nowhere. - i'm not exactly the best with documentation and api's!! | |||
Fergal New member Username: Middle_of_road Post Number: 3 Registered: 02-2006 |
Hi i successfully sent a sms using java.HttpURLConnection! However i'm not at all clear at what is required to recieve an sms message into a java program! The 2 way tutorial using the cmd Echo command works! Do I need a web server? (not what i want to hear) or i've seen someone else post the following code C:\WINDOWS\system32\cmd.exe /c C:\checksms.class @@SENDER@@ @@FULLSMS@@ again not sure what happens here! Help/Explanations or steps required to perform this would be of great help Thanks | |||
md sulaiman New member Username: Sulaiman Post Number: 1 Registered: 03-2006 |
i am doing a project in java to send SMS from PC to MOBILE, but dont have any idea, i will be thankful if any one can help me in this regard, mail me if ypu have any info at sulaiman@india.com | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 5548 Registered: 10-2002 |
I wouldn't necessarily say that you need a web server. But NowSMS is geared more toward using HTTP connections in the 2-way command facility. Basically, to run your class, the question would be ... what do you need to do from the command line? Usually, from a command line prompt you would type: java c:\checksms.class args Try running your class in this way, passing arguments similar to what might come from an actual SMS. java c:\checksms.class +447777777777 test message Assuming that works ok, try this as the 2-way command: C:\WINDOWS\system32\cmd.exe /c java C:\checksms.class @@SENDER@@ @@FULLSMS@@ | |||
Stephen Williams New member Username: Technology Post Number: 2 Registered: 03-2006 |
I have downloaded the NOWSMS2006, however it still shows as NOWSMS/MMS Gateway v5.51 (b20040823) and not NOWSMS 2006, and it just looks the same to me and have all the very same things. Why is this? | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 5556 Registered: 10-2002 |
Try clearing your browser cache and download again. When the installation program starts, the title bar should say "Now SMS-MMS Gateway 2006 (March 1, 2006)". | |||
Fergal New member Username: Middle_of_road Post Number: 4 Registered: 02-2006 |
thank you very much Bryce, i just needed that bit of direction. | |||
Fergal New member Username: Middle_of_road Post Number: 5 Registered: 02-2006 |
Hey again, My problem this time isn't an NowSMS problem directly but more a java problem but i was hoping that someone here might be able to help me! I've created a java application that when tested from the command line (java getLottoResults "prefix" "phone number") it works perfectly sending the required reply to the phone number entered. However when implementing the 2 way SMS, (C:\WINDOWS\system32\cmd.exe /c java getLottoResults @@PREFIX@@ @@SENDER@@) i get an error message returned to my phone. java.lang.NoClassDeffoundError: getLottoResults Exception in thread "main". Am i missing a extra path to add to CLASSPATH variables???? Any ideas ? please | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 5621 Registered: 10-2002 |
Hi Fergal, I'd suspect that it is a directory path issue. Put a full path specification in front of "getLottoResults" so that it can be located. For example: C:\WINDOWS\system32\cmd.exe /c java c:\path\getLottoResults @@PREFIX@@ @@SENDER@@ -bn | |||
Sarah A. New member Username: Sarah83 Post Number: 2 Registered: 01-2006 |
Hi All, I need this java class c:\checksms.class ASAP,pleaaaaaaase | |||
atirah New member Username: Atirah1212 Post Number: 1 Registered: 06-2006 |
hi... i'm really new in java... how can i send sms using java.httpurlconnection?is there any examples that i can try? thanx | |||
DoDo debeky New member Username: Dodo Post Number: 10 Registered: 05-2006 |
hi plz does any one have a java code to send sms from a mobile application plz send on my mail urgenlty doaaeldebeky@yahoo.com thx bye bye | |||
ganesh vadivel New member Username: Ganeshvadivel Post Number: 1 Registered: 08-2006 |
hi all, I want to send und to receive text sms using java. plz tell me what to do. its urgent email:vganesh19@gmail.com |