Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0, Mac OS

Get PDF Book Print View

Document Information

Getting Started


Using Sample Projects

Creating and Editing Projects

Viewing and Editing Project Properties

Running Projects in the Emulator

Searching the WURFL Device Database

Finding Files in the Multiple User Environment

Profiling Applications

Network Monitoring

Lightweight UI Toolkit

Security and MIDlet Signing

CLDC Emulation on a Windows Mobile Device

Installing CLDC Emulation on a Windows Mobile Emulator (Windows Only)

On-device Debugging

Command Line Reference


JSR Support

JSR 75: PDA Optional Packages

JSR 82: Bluetooth and OBEX Support

JSR 135: Mobile Media API Support

JSR 172: Web Services Support

Generating Stub Files from WSDL Descriptors

Creating a New Mobile Web Service Client

Run JSR172Demo

JSR 177: Smart Card Security (SATSA)

JSR 179: Location API Support

JSR 180: SIP Communications

JSR 184: Mobile 3D Graphics

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

JSR 226: Scalable 2D Vector Graphics

JSR 229: Payment API Support

JSR 238: Mobile Internationalization API (MIA)

JSR 256: Mobile Sensor API Support


Generating Stub Files from WSDL Descriptors

The Java ME Platform SDK provides a stub generator that automates creating source code for accessing web services that conform to the J2ME Web Services Specification. You can add stubs to any MIDP application. The following is a general procedure for adding stubs:

  1. In the Projects window, expand the tree for a project.
  2. Right-click on the Source Packages node and select New > Other.
  3. In the Categories pane select Other, and in the File Types area choose Mobile Webservice Client.
  4. In the Generate J2ME Webservice Stub page, you can either:
    • Click Running Web Service and enter the URL for the WSDL

    • Click Specify the Local filename for the retrieved WSDL and browse to a file on your system.

    In either case, you must enter a Package name, then click Finish. The new package appears in the project and includes an interface file and a stub file.

  5. You can now edit your source files to call the content the stub provides, then build and run.

    See Creating a New Mobile Web Service Client for a step by step process, or see Run JSR172Demo and view the demo source files.