New Mobile Designer Component Wizard
See Also
Use the New Mobile Designer Component Wizard to create all of the necessary elements for adding a new custom component to the Visual Mobile Designer Palatte such as a branded splashscreen component. ge is the last page of this wizard.
In this page, you specify the:
- Name and location of the client to be created.
- Types of code to be generated for the client.
- 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. You can click on the Settings file to change the options and regenerate the files.
To specify the name and location of the generated servlet, enter information
in the following fields:
- Client Name. Name for the client file to be generated.
- Package. Package where the class will be located.
Then choose from the following options.
- 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.
- 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.
- Allow floating point. Activates support for float and double
data types.
- 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.
- Optionally, choose Create sample MIDlet to create a sample MIDlet that can
connect to the Web service.
Clicking Finish generates:
- A Java ME client class
- A servlet and supporting classes
- A settings file in xml format that can be used to regenerate the server
and Java ME client classes.
- Optionally, a MIDlet you can examine and modify.
See Also
- About Visually Designing MIDP Applications
Legal Notices