LibraryLink ToToggle FramesPrintFeedback

Chapter 2. Defining Logical Data Units

Mapping data into logical data units
Adding data units to a contract
XML Schema simple types
Defining complex data types
Defining data structures
Defining arrays
Defining types by extension
Defining types by restriction
Defining enumerated types
Defining elements

When defining a service, the first thing you must consider is how the data used as parameters for the exposed operations is going to be represented. Unlike applications that are written in a programming language that uses fixed data structures, services must define their data in logical units that can be consumed by any number of applications. This involves two steps:

  1. Breaking the data into logical units that can be mapped into the data types used by the physical implementations of the service

  2. Combining the logical units into messages that are passed between endpoints to carry out the operations

This chapter discusses the first step. Defining Logical Messages Used by a Service discusses the second step.