Getting started
IBM WebSphere® Studio Device Developer V5.6 (which we'll refer to in this tutorial as Device Developer ) now provides support for the creation of Web service clients for the Java 2 Platform, Micro Edition. The new Web services features are available as a technology update at the Device Developer update site (see Resources for a link). The new support consists of several plug-ins that provide the runtime libraries, WSDL-to-Java-language tooling, and extended documentation necessary for creating J2ME Web services clients.
To enable you to access remote Web services, the new functionality implements the J2ME Web services specification (JSR 172). This specification identifies two independent, optional packages that you can use to access remote SOAP- or XML-based Web services and
parse XML data.
Support is provided for the Mobile Information Device Profile (MIDP) using the IBM WebSphere Micro Edition (WME) jclMidp library, and for the Foundation Profile using the IBM WebSphere Micro Edition (WME) jclFoundation library.
In order to ease the development process, Device Developer V5.6 provides a wizard that auto-generates Web service client stub code using the target Web service's WSDL file. From the WSDL, the tooling will generate a client stub as well as any helper classes needed to access the Web service. The tooling can also optionally generate a sample MIDlet that uses the generated stub to access the service.
The complete JSR 172 specification is available for download at the Java Community Process; see Resources for a link.
What does this tutorial cover?
In this tutorial, we guide you through the steps necessary to build mobile Web services clients on J2ME MIDP devices. By following the steps in this tutorial, you will see how quickly and easily you can create a Web services client with Device Developer.
The example we build in this tutorial is a stock quote client application. Using the Device Developer Web services tooling, you will generate a client stub and a MIDlet that will take a stock symbol as input and retrieve the most current price (time delayed, of course). Finally, we guide you through the steps necessary to run our sample MIDlet on Device Developer's MIDP emulator.

