Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Develop Web services clients for mobile devices

Pierre Carlson has worked in various development and leadership roles in systems and application development for IBM Austin since 1998. As the Lotus Expeditor Toolkit Architect, he is leading the design and planning work for future releases of this product. Prior to this, Pierre led the IBM WebSphere Everyplace Client Toolkit and the IBM WebSphere Everyplace Deployment JSR-172 Web services runtime and tools team, led the development team for the IBM Interactive Solutions Marketplace, and worked on operating systems, print drivers, and other systems. When not working for IBM, Pierre spends his free time working on a Master's degree in Computer Science.
Michael Rheinheimer is an IBM Web services runtime developer in the Software Group. He has worked in such diverse IBM groups as AIX support, Service Gateway, Extension Services for WebSphere Everyplace, and now Web services runtime. He holds a bachelor of science degree in computer science from the University of Texas at Austin. In his spare time, he enjoys backpacking, playing tennis, and running. Contact Michael at rott@us.ibm.com.
Herman Rodriguez (hermanr@us.ibm.com), Software Development Engineer, IBM
Herman Rodriguez is a software development engineer with over 28 years of experience. He is also a Master Inventor, with over 170 patent applications, and over 35 patents granted; one granted patent was for the Internet Passport. He is currently developing Web services enablers for pervasive devices.

Summary:  This tutorial guides you through the necessary steps to build mobile Web services clients on J2ME MIDP devices. By following the steps in this tutorial, you will see how quick and easy it is to create a Web services client. The example built in this tutorial is a stock quote client application. Using the WebSphere Studio Device Developer V5.6 Web Services tooling, you can 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, it guides you through the steps necessary to run the MIDlet on the Device Developer MIDP emulator.

Date:  08 Mar 2004
Level:  Intermediate PDF:  A4 and Letter (1619 KB | 37 pages)Get Adobe® Reader®

Activity:  6707 views
Comments:  

Getting started

Introduction

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.

1 of 8 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=SOA and Web services
ArticleID=137510
TutorialTitle=Develop Web services clients for mobile devices
publish-date=03082004
author1-email=mpcarl@us.ibm.com
author1-email-cc=
author2-email=rott@us.ibm.com
author2-email-cc=
author3-email=hermanr@us.ibm.com
author3-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.