943,624 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 6963
  • Java RSS
Nov 28th, 2008
0

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

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Light Poster
mahaboob Basha is offline Offline
28 posts
since Nov 2008
Nov 28th, 2008
0

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

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.
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007
Nov 28th, 2008
0

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

<ignore>
Last edited by stephen84s; Nov 28th, 2008 at 9:44 am.
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007
Nov 28th, 2008
0

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

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@@





Click to Expand / Collapse  Quote originally posted by stephen84s ...
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.
Reputation Points: 10
Solved Threads: 0
Light Poster
mahaboob Basha is offline Offline
28 posts
since Nov 2008
Nov 29th, 2008
0

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

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..






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@@
Reputation Points: 10
Solved Threads: 0
Light Poster
mahaboob Basha is offline Offline
28 posts
since Nov 2008
Dec 1st, 2008
0

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

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.
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Please help! I need to get subscript.....
Next Thread in Java Forum Timeline: pls help w/ this





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC