| | |
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:
Solved Threads: 0
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
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
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.
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 ?"
"How to ask questions the smart way ?"
<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 ?"
"How to ask questions the smart way ?"
•
•
Join Date: Nov 2008
Posts: 28
Reputation:
Solved Threads: 0
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@@
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@@
•
•
•
•
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.
•
•
Join Date: Nov 2008
Posts: 28
Reputation:
Solved Threads: 0
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..
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..
•
•
•
•
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@@
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 ?"
"How to ask questions the smart way ?"
![]() |
Other Threads in the Java Forum
- Previous Thread: Please help! I need to get subscript.....
- Next Thread: pls help w/ this
| Thread Tools | Search this Thread |
android api applet application array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) chat class classes client code columns component constructor database designadrawingapplicationusingjavajslider draw eclipse editor error errors event eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress input integer intellij j2me java javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle parsing plazmic print problem program programming project recursion scanner screen server set sharepoint size smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads time tree unlimited utility webservices windows






