Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing server on mobile

 
feda alshahwan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to create a server on mobile device the steps might be as follows:
1. Listen to incomming request
2. parse the request and extract SOAP message
3. invoke the required wev service and execute it
4. wrap the results
5. send the response
The problem is how to implement those steps?Can anyone help e please?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of device would this be? I think that most mobile devices (certainly most cell phones, PDAs etc.) are not capable of receiving incoming TCP/IP connections from arbitrary clients.
 
feda alshahwan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The device is smartphonePDA
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then this is most likely not possible, unless the client runs as part of the service provider's software.
 
feda alshahwan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How it can be possible and a researcher has proved the that it is possible check the following paper from IEEE"Hosting Web Services on Resource Constrained Devices"
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The difficulty is not in hosting a web service on a portable device (PDAs and the like are fully programmable these days, and have sufficient memory for that); the difficulty is in accessing it from an arbitrary client.
 
feda alshahwan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I need help in hosting those web services on mobile device. How to create a server on mobile device that accepts SOAP messages, Parse them and invoke the appropriate web service?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:The difficulty is not in hosting a web service on a portable device (PDAs and the like are fully programmable these days, and have sufficient memory for that); the difficulty is in accessing it from an arbitrary client.


To be precise, http://www.mousetech.com started out life as someone's desktop computer. It's my primary web server, although absolutely antique by today's standards.

My Cell phone has a CPU that's at least as powerful as that computer, and it has 3x the RAM. But it doesn't have a public IP address.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heck, I've run a web server on PICs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic