In this section, we will show you how to generate a sample slim client cdc application from scratch. This assumes that the web service for the application is already available and ITAnyplace plugin is installed in Eclipse. This sample ships with ITAnyplace.
Follow the following steps:
- File -> New -> Other. Select Slim Client(J2ME MIDP Based) under ITAnyplace Project

- Enter project name 'Crmsample' and click Next

.
- Select the Device and Name the Application Description file.

- Edit any Java settings and click Finish

- This creates a new project with the following hierarchy

- Select the project and then click New --> Other --> ITAnyplace Model Creation Wizard. Select ITAnylace Workflow and click Next

- Enter model file name 'MIDPCrmSample.model' and click Next

- Pick a web service WSDL file from local file system (eg. SyncablePort.wsdl) and click Finish

- Tool will parse the wsdl and generate the following model


- Double click on the Semi Connected Workflow, the model appears with all the methods of the wsdl. Enter Host Name, Port and Name. If you want Push Notification support in the app, make appropriate selection. To Location support, make appropriate selection.

- Add 'index' node to Semi Connected Workflow. Semi Connected Workflow --> Select new child -->Semi Connected Node

- Add 'Add' Link to Semi Connected Node. Semi Connected Node --> Select new child --> Link

- Add 'View' Link to Semi Connected Node. Semi Connected Node --> Select new child --> Link

- Add 'Update' Link to Semi Connected Node. Semi Connected Node --> Select new child --> Link

- Add 'Delete' Link to Semi Connected Node. Semi Connected Node --> Select new child --> Link

- Add 'Sync' Link to Semi Connected Node. Semi Connected Node --> Select new child --> Link

- Add 'Purge' Link to Semi Connected Node. Semi Connected Node --> Select new child --> Link

Index node looks as follows:

- Add 'Add' node to Semi Connected Workflow. Semi Connected Workflow --> Select new child -->Semi Connected Node

After performing the save operation all the Semi Connected Output Port of add method are appended itself.
Add node looks as follows:

If user wants Attachment support, add it by Semi Connected Node Add--->Select new child-->Attachment

Attachment node looks as follows:

- Add 'View' node to Semi Connected Workflow. Semi Connected Workflow --> Select new child -->Semi Connected Node

- Add 'AccountName' Semi Connected Outport Port to Semi Connected Node. Semi Connected Node --> Select new child -->Semi Connected Outport Port

- Add Attachment support by Semi Connected Node View --> Select new child -->Attachment
(User must be define Ralational filed - Primary Key in view node).

View node looks as follows:

- Add 'Update' node to workflow. Semi Connected Workflow --> Select new child -->Semi Connected Node

- Add 'AccountName' Semi Connected Outport Port to Semi Connected Node. Semi Connected Node --> Select new child -->Semi Connected Outport Port

- Add Attachment support to Update node by Semi Connected Node Update --> Select new child -->Attachment

Update node looks as follows:

- Add 'Delete' node to Semi Connected Workflow. Semi Connected Workflow --> Select new child -->Semi Connected Node

- Add 'AccountName' Semi Connected Outport Port to Semi Connected Node. Semi Connected Node --> Select new child -->Semi Connected Outport Port

Delete node looks as follows:

- Add 'Purge' node to Semi Connected Workflow. Semi Connected Workflow --> Select new child -->Semi Connected Node

- Add 'accountName' Semi Connected Outport Port to Semi Connected Node. Semi Connected Node --> Select new child -->Semi Connected Outport Port

Purge node looks as follows:

- Add 'Sync' node to Semi Connected Workflow. Semi Connected Workflow --> Select new child -->Semi Connected Node

- Add 'accountName' Semi Connected Outport Port to Semi Connected Node. Semi Connected Node --> Select new child -->Semi Connected Outport Port

- Add 'accountName' primary key to Semi Connected Node. Semi Connected Node --> Select new child -->Primary Key

Sync node looks as follows:

After generating the model, now its time to generate the code for the model.
- Right Click on MIDCrmSample.Model and Go to itanyplace Generate Code. This
will generate classes under MIDCrmSample folder (same as the Semi Connected workflow name) for each node.

Directory Structure:

Deployment of semi-connected applications(J2ME MIDP)
A couple of additional steps are required to deploy a semi-connected application(J2ME MIDP):

- To test the generated code for (J2ME MIDP), launch MIDPLauncher.java under the package MIDPCrmSample as shown in fig above.



- Create provisioning archive by using the option shown below. Upload the par in ITAnyplace Admin Console.

Download and install the par in Nokia Series 60 emulator and launch it.