Beta Draft: 2014-02-04

New Java ME Client to Web Application: Generator Client Options Page

Use to generate a MIDP client and servlet that connects to a web application that includes a web service client. This type of connection utilizes three "tiers": client, web application with servlet, and server. The client communicates with the generated middleware servlet using a proprietary communication protocol. The servlet and server communicate using standard Simple Object Access Protocol (SOAP) messages.

If you want to re-generate the client and servlet files with different options, you do not have to re-create them in this wizard. Click on the Settings file to change the options and regenerate the files.

Element Description

Client Name

Specifies the name for the client file to be generated.

Project

Displays the name of the current project.

Package

Specifies the package where the class is to be located.

Created File

Displays the path name of the client file.

Generate stubs

Generates stub (client-side proxy) methods on the client for each exported service. Method names are incorporated in the class name. Using HelloService for example, the sayHello() method is exported. The generated stub method creates a method on the client called example_HelloService_sayHello(). If this option is not selected, only one method is generated on the client.

Allow floating point

Activates support for float and double data types.

Create DataBinding structures

Creates data binding structures.

Generate grouped calls

Generates additional code to support making multiple calls to server-side services in a single HTTP request and response. When turned on with the Generate Stub Methods option also turned on, a generated method is created on the client for each exported service with the stub method name ending in Grouped. Using HelloService for example, the sayHello() method is exported. The generated stub method creates a method on the client called example_HelloService_sayHelloGrouped().

When the option is selected, the server is called only after several grouped calls are made and the getGroupedResults() method on the client class is called. All the method calls are invoked in a single HTTP request and response. Methods are invoked in the order they were called. Results are returned in an enumeration object.

If a server call causes an exception, the exception is thrown when getGroupedResults() is called. When an exception is thrown in a sequence of grouped calls, the calls following the exception are not processed.

Generate tracing code

Generates tracing code that provides runtime information during the execution of remote calls. Client tracing output goes to the MIDP implementation standard output. Server tracing output goes to the server log file. Turn this option on to generate versions of client and server tracing code to help you if connection problems occur between the client and the server.

Create sample MIDlet

Creates a sample MIDlet that can connect to the Web service.



Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.