Skip to main content

Webservice through a mobile device

5 replies [Last post]
cogitans
Offline
Joined: 2010-01-07
Points: 0

Hello

I'm not sure if this is the correct forum to post my question at but I couldn't find any other so here I go.

I'm trying to get some experience in creating mobile-phone applications. I guess it's midlets/MIDP.
What I'd like is an administration-side of the system where a user is able to create rows in a database. This is done through a webpage or something similar which takes use of a webservice that controls the communication to the database.
The mobile phone is using another webservice which registers a certain time when the phone is sending the request.
I've created the webservices at this point of time. But now I'd like to test it through a simulated phone-device. I'm using NetBeans (I hope this isn't a reason not to get support...), but I'm having problems adding this MIDP to my project.

Does anybody have any idea what I'm supposed to do next?

I really hope for an answer.

Thanks in advance - I really appreciate your help.

Best regards,
Kenneth Andersen

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
carolinewilson
Offline
Joined: 2010-02-19
Points: 0

Thanks for such a useful discussion i come to know websevice through a mobile phone is so common in now days. so I have a solution for the mobile device when the sim card which is inserted into your mobile phone and suddenly all data which is stored into your sim card was deleted then for recover all data i come to know a tremendous website who provides all data recovery software for various devices......
Just got to click on:http://www.datarecoverysoftware.com/datarecoverysoftware/data-recovery-simcards.html
Thanks & Regards
Caroline Wilson

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Kenneth,

For a quick-start on this I'd suggest to check out the Mobile Ajax project in the Mobile & Embedded Community:

https://meapplicationdevelopers.dev.java.net/mobileajax.html

It features ready-to-run NetBeans projects and source code that shows you how to consume RESTful web-services from Java ME. You can run the code on the mobile emulator within NetBeans once you install the "Mobility" plug-in.

Hope that helps,

-- Terrence

cogitans
Offline
Joined: 2010-01-07
Points: 0

Terrence,

Thanks a lot for your kind reply.
It has helped me a lot. Now I can read some about a few other interesting areas, too.

However I'm stuck at another point now. I've tried to add new methods to my RESTful webservice and then compiled it. But then when I instantiate an object of that type then the new methods aren't available. I'm not sure if this is a Netbeans-problem or if it has anything to do with the general update of webservices in the java-language?

Thanks for your help,
Kenneth Andersen

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Kenneth,

Have you tried using one of the demo apps like the Yahoo! business search?

https://meapplicationdevelopers.dev.java.net/source/browse/meapplication...

You should be able to load it directly as a project in NetBeans and build & run it. That ensures you got the Ajax library included and can instantiate it. Then you can compare that to what you are doing different in your own code.

"... webservices in the java-language": The nice thing about the Ajax library is that is has no requirements other than standard MIDP HTTP, i.e. it doesn't need any of the webservices APIs to be present in the platform.

Hope that helps,

-- Terrence

cogitans
Offline
Joined: 2010-01-07
Points: 0

Terrence,

Thanks for your support. I figured out the problem now.

Kenneth