This example shows you how to create a MIDlet that acts as a web
service client interfacing with a remote server. The web service exposes
one simple operation (getCapital(String nation)
)
that takes a country name as a parameter and returns the name of the
country's capital.
Note: This example focuses on the client side of the server-client implementation.
Figure: CapitalMIDlet running on a Series 40 device
For a tutorial that shows you how to create this MIDlet, see section Example: Creating a remote server connection.
This MIDlet is compatible with Series 40 5th Edition devices and newer.
This MIDlet has been tested (without the remote server) on the following device:
Nokia X3-02 (Series 40 6th Edition Feature Pack 1)
The MIDlet project files are packaged as a zip file. To download the zip file, click the following link:
The MIDlet consists of the following packages and classes (click to view the full source code):
com.nokia.example.capitals
com.nokia.example.capitals.ui