|
Thursday June 15, 2006 |
|
Difference between Mobile client To Web Application and J2ME Web Services Client
|
TIP
|
Difference between these two clients is simple - the JSR 172.
The picture shows how the client communicates with webservice. When you have a device with Webservices API (JSR172) support then it's easy. When the device is without the Webservices API then you have to solve it in different way. You can create a middle tear that you'll communicate with a binary protocol. The middle tear can then connect to the webservice.
There are wizard for both cases in NetBeans Mobility Pack. You can find then in New File dialog in MIDP category.
The J2ME Web Services Client wizard generates the client stubs from provided WSDL file. The Mobile client To Web Application wizard generates both parts necessary for communication - client and server part. You can generate client comunnicating either with a class/servlet or with webservice client on the server. Both wizards generate Sample midlet for you. So you can easily understand and check how to work with the technology. Sometimes it's enought to accomodate the Sample midlet for your purposes.
|
|
( Jun 15 2006, 09:57:00 PM CEST )
Permalink
|
|
Trackback URL: http://blogs.sun.com/lukas/entry/difference_between_wireless_connection_bridge
|
Posted by Michel on June 16, 2006 at 11:11 PM CEST #
Posted by Yogev Triki on June 22, 2006 at 09:34 AM CEST #
Posted by benjamin dumenyo on July 01, 2006 at 09:27 PM CEST #
Posted by Jason on August 08, 2006 at 04:41 PM CEST #
Posted by Lukas on August 08, 2006 at 05:15 PM CEST #
Posted by Jason on August 08, 2006 at 05:36 PM CEST #
then it should work. I'll write a post explaining it in more details soon.
Posted by Lukas on August 11, 2006 at 04:14 PM CEST #
Posted by jason on August 12, 2006 at 11:12 PM CEST #
They fixed in latest WTK2.5 builds. I don't know when they'll be available for public...
Posted by Lukas on August 17, 2006 at 04:39 PM CEST #
Posted by Jason on August 24, 2006 at 11:59 AM CEST #
Posted by ilk on September 07, 2006 at 11:50 AM CEST #
Feel free to mail me directly with more details.
Posted by Lukas on September 09, 2006 at 08:35 PM CEST #
Posted by kostis on December 10, 2006 at 01:48 AM CET #
Posted by mobile telemed group on February 26, 2007 at 10:01 AM CET #
For more details look at http://blogs.sun.com/lukas/entry/java_me_to_java_ee
Posted by Lukas on February 27, 2007 at 04:55 PM CET #
Posted by mobile telemed group on March 05, 2007 at 08:58 AM CET #
Are you behind a proxy/firewall? If yes then you have to set up proxy of the Wireless toolkit (http://blogs.sun.com/lukas/entry/setting_proxy_server_for_wtk).
Posted by Lukas on March 05, 2007 at 10:58 AM CET #
Posted by telemedicine group on March 05, 2007 at 04:31 PM CET #
Posted by mobile telemedicine group on March 05, 2007 at 04:33 PM CET #
The list of abilities is generated automatically from emulator platform settings when you are adding new platform to IDE. E.g. when you add a Siemens CX65 emulatotor (SDK) then the JSR172 will be missing. I'm using the default emulators of WTK therefore I had to configure the emulator platform by myself in project properties.
Posted by Lukas on March 05, 2007 at 05:19 PM CET #
Posted by Scooter Willis on May 29, 2007 at 06:31 PM CEST #
Posted by Bernhard on June 05, 2007 at 01:32 PM CEST #
There are filled issues to track the problem -
http://www.netbeans.org/issues/show_bug.cgi?id=89831
http://www.netbeans.org/issues/show_bug.cgi?id=92824
Posted by Lukas on June 05, 2007 at 04:58 PM CEST #
Posted by bruno on June 06, 2007 at 12:19 AM CEST #
The DailyDilbert example doesn't use the JSR172. This example is focused on the Mobile Client to Web Application.
The source code used in the flash demo is available here. You can read more detailed description of the scenario in this post.
Posted by Lukas on June 06, 2007 at 08:44 AM CEST #
"Web project must be built before using Mobile Client to Web Application for Web Services"
Posted by 91.124.41.146 on September 04, 2007 at 10:46 PM CEST #
Hi Lukas. Great demo. I used to use it non-stop until I installed NetBeans v6.0 beta 1 where the sample MIDlet and Stubs do not get generated (http://wiki.netbeans.info/wiki/view/MobilityNewAndNoteworthy). At the time I have v6.0b1 and v5.5.1 installed. The v6.0b1 installation also affected the MIDlet sample generation wizard in v5.5.1. Since then I have uninstalled both version and re-installed v.5.5.1 from scratch, but with no luck. How do I get this functionality back in v5.5.1. Please help. Thank you.
Posted by Francois on October 17, 2007 at 04:11 PM CEST #
hi Lukas, I'm bruno again, thanks for your response.
Now I have a questions for you. How can I try to use UDDI o something like that with the example?? I mean, I want to use a wsdl ( web service) that it can move or stay in diferent places. is it clear? :-)
Posted by bruno on October 18, 2007 at 10:53 PM CEST #
Hi, Its a great tutorial thanks for it, but please tell me if you have prove this in a real phone, and tell me which,I have a k550 sony ericsson, and it have the api jsr 172, but It does not work with the midlet, can you tell if I need configurate something in the server or the glassfish
Thanks
Posted by Julian on January 12, 2008 at 01:07 AM CET #
You need to be able to access the server site from internet. It means it cannot be at your localhost or behind firewall/proxy. If there is a real IP then it should be acessible from your phone application. HTH, Lukas
Posted by Lukas on January 14, 2008 at 02:20 PM CET #
Hi Lukas,
please I need help, I follow the Dilbert Viewer example for netbeans 6.0 and I found diferent with the dilbert example for netbeans 5.5
I need to known how can I set the URL of the web app in the mobile app in netbeans 6.0 example like in NB5.5 example??!
the dilbervisualMidlet is diferent! and I can´t add customs command to the main menu(list) "displayable item".
I need to build a mobile client which can set the URL of the web app where the web service exist...like dilbert example in 5.5!!
thank you.
bye
bruno.
Posted by bruno on March 19, 2008 at 12:39 AM CET #
Hi Lukas, do you have any link with the same information in spanish ? I'm constructing my personal webpage and I would like to contribute translating this info to spanish. any comments ?
Regards,
Posted by Antonio Valerio on August 28, 2008 at 10:14 PM CEST #
Hi Antonio, I'm sorry but I'm not aware about any similar informations in Spanish. AFAIK, Fabi (http://blogs.sun.com/fabi) blogged about Mobility in Spanish. Please, try to ask her if she knows more about the Spanish community.
Posted by Lukas on August 29, 2008 at 09:17 AM CEST #
Can JSR 280 be used as an XML API?
Posted by 119.151.72.16 on May 26, 2009 at 08:01 AM CEST #
I need to know the difference between JSR 172 and JSR 280
Posted by Sarah on May 26, 2009 at 08:03 AM CEST #
HI, I follow the steps to generate stub etc, but there is nothing on the emulator when run the project. Dose anyone know why?
Posted by david feng on October 29, 2009 at 06:07 AM CET #