Web services - CapitalMIDlet

Description

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 views

For a tutorial that shows you how to create this MIDlet, see section Example: Creating a remote server connection.

Compatibility

This MIDlet is compatible with Series 40 5th Edition and S60 3rd Edition FP2 devices and newer.

This MIDlet has been tested (without the remote server) on the following device:

  • Nokia X3-02 (Series 40 6th Edition FP1)

MIDlet project

The MIDlet project files are packaged as a zip file. To download the zip file, click the following link:

Download CapitalMIDlet

Table: MIDlet details

MIDlet version

1.0

Creation date

30 November 2011

IDE

Eclipse and NetBeans

SDK

Series 40 6th Edition FP1 SDK

MIDlet classes

The MIDlet consists of the following packages and classes (click to view the full source code):