Example: Creating a remote server connection

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

Prerequisites

You need the following to develop and test this MIDlet:

  • Series 40 5th Edition SDK or newer

  • Series 40 5th Edition device or newer

Development

For more information about the MIDlet, see:

  • Design for information about the design and functionality of the MIDlet

  • Implementation for information about implementing the MIDlet

You can download the project files for the MIDlet from the download page.