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:
In the Projects window, expand the tree for a project.
Right-click on the Source Packages node and select New > Other.
In the Categories pane select Other, and in the File Types area choose Mobile Webservice Client.
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.
You can now edit your source files to call the content the stub provides, then build and run.