• Post Reply Bookmark Topic Watch Topic
  • New Topic

Single platform - multiple devices?  RSS feed

 
Lila Fowler
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

My employer has requested an sms engine via clickatell (currently working in standard edition java),
but he is looking for a single solution where the cell number and the message can be passed to
the program remotely, from a cellphone, webpage, SAP program or tablet. My initial idea was to create
an applet/webpage where the user can connect and enter the cell number and message and press send.
The application would then send the message, but they do not want to use it this way. They basically want
to call the same java method(sitting on a server) in the background irrelevant of device and
without installing a separate java runtime on each device.

a) Is it possible to do this without using different sdks/jre (SE, EE, ME..)
b) Is it possible to pass parameters remotely into a the application?

Thanks for the help/suggestions.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16058
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you just create a webpage with a form then you don't need to install Java on your cellphone or other device. You just use your webbrowser to go to the webpage, enter the information and click a submit button. You do not need an applet for this, which would require Java on the device.
 
Lila Fowler
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jesper,

But a web form still requires the user to to physically
connect to the webpage enter a the number and message.

Let me try and explain a bit more clearly.

If a user is logged in to SAP he should without leaving SAP be
able to enter a transaction code, enter a cell and message and hit send.

At the same time a user is logged into a html/js based kiosk,
requests a voucher code to be sent to his cell, enters his cell and
message and presses send.

Parallel to that a user decides to enter a competition of a tab/cell
enters his cell and message and presses send.

Each of these sms should call the sms engine without having to leave
the current application/webpage/SAP instance that the user is currently
using.

Would it be possible to maybe have a glassfish server call passing the
parameters and then getting those parameters from java?

Thanks
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16058
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A form, as you see on a webpage, doesn't necessarily have to be sent by a browser. Any other application can also make an HTTP request to submit data, just like your webbrowser does when you submit a form on a web page. You'd just have to make something in SAP or whatever other system that does the HTTP request to the system that can send the SMS message.

You could write a servlet that runs on Glassfish, or any other servlet container, to process the HTTP request, get the parameters from the form etc.
 
Lila Fowler
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jesper,

I'v done more research and have create the a program that I can access locally using the following url:

http://localhost:8080/ClickatellSmsGateway2/ClickatellSmsGateway2Service?Tester

I can access this from another pc replacing the local host with an ip address but when I try use js/html
it hits the glassfish server but does not process the method and returns undefined.

Is there something I am missing in this process? I have downloaded the webservice.htc file and my
html code looks as follows:



Any ideas as to what I am doing wrong?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!