Show TOC

Creating a Mobile Service ComponentLocate this document in the navigation structure

Use

You create the data access and business logic of the application in the Mobile Service Component. This is represented by data objects, services, and their service operations. Data structures, exceptions, and messages can also be modeled.

Prerequisites

You have started a Handheld Application project.

More information: Creating a Handheld Application Project

Procedure

1. Define the Dependencies of the Component

After creating a Development Component (DC), its dependencies to other DCs must be defined.

More information: Defining Dependencies Between Components

2. Create the Data Model

Creating the data model involves creating data objects and the data structures for the services to be modeled.

More information: Creating the Data Model

3. Create Queries or Custom Operations

Depending on the business case and the services required, you may need to create queries, custom operations, or both. These operations are available:

  • Query

    This service operation retrieves data from a local database.

  • A Custom Operation

    This service operation performs any kind of business logic, such as a validation.

More information: Creating Queries and Custom Operations

4. Handle Exceptions

More information: Handling Exceptions

Result

You have a created a Mobile Service Component and can proceed with modeling the UI, if you are following the typical workflow in the Composite Development Scenario.

More information: Development Scenarios for Handheld Applications