[TIP] Connecting to a webservice in 5 minutes
By lukas on Sep 21, 2005
Steps to create J2ME Web Service Client in latest q-build of mobility (or a build after 09/19):
- Have a j2me project
- 'New File/Folder' then 'MIDP | J2ME Web Services Client'
- provide WSDL URL/file for you webservice (e.g. QuoteService that is used in NetBeans IDE 5.0 Quick Start Guide for Web Service Clients
- set up your proxy and port properly
- Retrieve WSDL
- check 'Create Sample MIDlet' checkbox and the wizard will create simple midlet for you
- run project
- launch the midlet
There can be problems with connection if you are behind firewall - don't forget to set up proxy.
There aren't much devices with JSR172 support but you can try this project with WTK emulator. This project use QuoteService. I didn't wrote a line in this project - everything was generated by the wizard.
Geertjan, what do you think? Isn't it time to try the mobility pack? The latest q-build (it contains J2ME Web Services Client) is available here.