aspose file tools*
The moose likes Web Services and the fly likes Implementing server on mobile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Implementing server on mobile" Watch "Implementing server on mobile" New topic
Author

Implementing server on mobile

feda alshahwan
Ranch Hand

Joined: Jul 26, 2008
Posts: 170
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
Marshal

Joined: Mar 22, 2005
Posts: 41885
    
  63
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.


Ping & DNS - my free Android networking tools app
feda alshahwan
Ranch Hand

Joined: Jul 26, 2008
Posts: 170
The device is smartphonePDA
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41885
    
  63
Then this is most likely not possible, unless the client runs as part of the service provider's software.
feda alshahwan
Ranch Hand

Joined: Jul 26, 2008
Posts: 170
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
Marshal

Joined: Mar 22, 2005
Posts: 41885
    
  63
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

Joined: Jul 26, 2008
Posts: 170
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

Joined: Jun 25, 2001
Posts: 16068
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Heck, I've run a web server on PICs.
 
Consider Paul's rocket mass heater.
 
subject: Implementing server on mobile