How to send (java code)sms from tomcatserver to mobile using some gateway

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Nov 2008
Posts: 28
Reputation: mahaboob Basha is an unknown quantity at this point 
Solved Threads: 0
mahaboob Basha mahaboob Basha is offline Offline
Light Poster

How to send (java code)sms from tomcatserver to mobile using some gateway

 
0
  #1
Nov 28th, 2008
hi friends

i have developed an application for bank accounts. Its a web
application and my server is Tomcat 5.0. my requirement is that user
could sms (from their mobile) to my application. In the SMS they will
provide their account no and in response my application will send a
sms
to their cell phone giving them their current balance.

and iam using now sms as a gateway and we configured it.. and i
connected my mobile as amodem to Pc

Now im very new to this mobile technology. im confused that whether i
have to use J2ME or JMS or what. And what other things i require.
The Mobile and application has to do nothin with each other(means they
r not connected in any way).
So i think i need services from a Service Provider. But from
technology pt of view what i'll use??

If any body knows which tech. to use and flow of such application pls help.
thanx...


Basha
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: How to send (java code)sms from tomcatserver to mobile using some gateway

 
0
  #2
Nov 28th, 2008
This link will help you on how to configure NowSMS to read incoming messages and forward them on to an HTTP URL (which could be your servlet, JSP whatever).

I had already told you in one of your previous threads to check the reference manual of NowSMS for that, but it seems like you are just more interested in ready made answers.

In the URL (JSP / Servlet / ASP / PHP /...) that you make (and set in the "Command to Execute" field) all you have to do is set the content type to "text/plain" and whatever text you return in the response will be sent back to the user who sent the message.

Also I had already mentioned it to you that your SMS speech is irritating, this is the last post of yours I am reading if you keep it up.
Last edited by stephen84s; Nov 28th, 2008 at 9:44 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: How to send (java code)sms from tomcatserver to mobile using some gateway

 
0
  #3
Nov 28th, 2008
<ignore>
Last edited by stephen84s; Nov 28th, 2008 at 9:44 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 28
Reputation: mahaboob Basha is an unknown quantity at this point 
Solved Threads: 0
mahaboob Basha mahaboob Basha is offline Offline
Light Poster

Re: How to send (java code)sms from tomcatserver to mobile using some gateway

 
0
  #4
Nov 28th, 2008
Iam getting the following error
Command not completed .Request returned invalid contentype:text/html

hi can i give the command to execute as below....

this http://localhost:8080 is tomcats url and amount.jsp is the one i want to execute.. plz assist me in this...


http://localhost:8080/amount.jsp?Sen...xt=@@FullSMS@@





Originally Posted by stephen84s View Post
This link will help you on how to configure NowSMS to read incoming messages and forward them on to an HTTP URL (which could be your servlet, JSP whatever).

I had already told you in one of your previous threads to check the reference manual of NowSMS for that, but it seems like you are just more interested in ready made answers.

In the URL (JSP / Servlet / ASP / PHP /...) that you make (and set in the "Command to Execute" field) all you have to do is set the content type to "text/plain" and whatever text you return in the response will be sent back to the user who sent the message.

Also I had already mentioned it to you that your SMS speech is irritating, this is the last post of yours I am reading if you keep it up.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 28
Reputation: mahaboob Basha is an unknown quantity at this point 
Solved Threads: 0
mahaboob Basha mahaboob Basha is offline Offline
Light Poster

Re: How to send (java code)sms from tomcatserver to mobile using some gateway

 
0
  #5
Nov 29th, 2008
Iam getting the following error
Command not completed .Request returned invalid contentype:text/html

I have given like this
http://localhost:8080/amount.jsp?Sen...llSMS@@&conten type:text/html

and checked that command response text box also
But iam getting above error..

instead of above urlk i tried this..
http://192.163.1.102:8080/amount.jsp...llSMS@@&conten type:text/html

But got the same error..plz try to hel me in this..






Originally Posted by mahaboob Basha View Post
Iam getting the following error
Command not completed .Request returned invalid contentype:text/html

hi can i give the command to execute as below....

this http://localhost:8080 is tomcats url and amount.jsp is the one i want to execute.. plz assist me in this...


http://localhost:8080/amount.jsp?Sen...xt=@@FullSMS@@
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: How to send (java code)sms from tomcatserver to mobile using some gateway

 
0
  #6
Dec 1st, 2008
Read my first post carefully, I had said set the content type in your servlet to text/plain not text/html and do you always have to quote the previous message whenever you are replying ???
Last edited by stephen84s; Dec 1st, 2008 at 1:57 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC