To invoke a servlet from received sms

To invoke a servlet from received sms SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through May 20, 2013 » To invoke a servlet from received sms « Previous || Next »
Author Message
Pratik Singh
New member
Username: Pratik

Post Number: 1
Registered: 08-2012
Posted on Friday, August 31, 2012 - 11:39 am:   

I am trying to send a sms from my cell to nowsms gateway.Using 2-way sms,I have specified the path of my servlet which run on apache tomcat server ,in command to execute.My servlet contains simple out.print command,parameters for this is content of the message,which is being passed from the command to execute line.
It would be great help if you could help me to run my servlet using nowsms.

Regards,
Pratik
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4085
Registered: 08-2008
Posted on Friday, August 31, 2012 - 02:48 pm:   

Hi Pratik,

It's difficult for me to answer, because I don't know how far you've gotten, and I know nothing about your system configuration.

So I mostly can only respond with questions ...

Does NowSMS receive your message? In the configuration program, the "SMS Received" counter is increased every time a message is received. Are you getting that far? If not, what is NowSMS using to receive messages? A GSM modem? What model? (Also see http://support.nowsms.com/discus/messages/1/4520.html)

If NowSMS is showing messages being received, then how is your 2-way command defined? Is the SMS command prefix set to * ... to get started, that would be a good idea, it means to route all received SMS to your command.

If you've done that, and confirmed that NowSMS is actually receiving the message, then my next suggestion would be to enable the SMSDEBUG.LOG. (Checkbox option on the "Serial #" page.) A lot of the info you will see in SMSDEBUG.LOG will not be helpful, but it will show any HTTP 2-way command URL that is generated, and what HTTP response is returned by your servlet. Often that can show surprises where the URL is not quite what was expected.

--
Des
NowSMS Support

Login Login / Register Logout Logout Search Last 30 Days Topics Topics