RODL Files

From RemObjects Wiki

(Redirected from RODL)
Jump to:navigation, search

This is a RemObjects SDK Architecture topic
Feel free to add your notes to this topic below.



RODL Overview

RODL (short for RemObjects Definition Language) files form one of the foundations of RemObjects SDK, and are used to define the interface of the services that a RemObjects SDK server exposes - both the actual services as well as any user-defined types that might be passed in and out of these services.

Conceptually, RODL files can be compared to Type Libraries (TLB) files used in COM or the WSDL (Web Service Definition Language) files used in SOAP Web Services, but they provide advantages over these:

To enhance the experience of working with and creating RODL files, RemObjects SDK provides the Service Builder, which offers an intuitive GUI and a RAD approach to defining services.

Elements of a RODL File

In addition to the services themselves, a RODL file can contain definitions for a number of different elements that make up your server. These are:

How RODLs are used in RemObjects SDK

As mentioned above, RODL files are used to define the services and related types of your RemObjects SDK servers. As such, the process of working with RODL files is usually that the architect of the service will use Service Builder to create a RODL file defining the service, which will then be used during the development of the service in several ways:

RODL Files in Your Projects

Typically, RODL files will be considered part of the files that make up your project. How this is handled in the IDE's project management differs with the type of IDE you are using.

The Visual Studio IDEs will treat your RODL file as proper members of your project. You will see the file show up in Solution Explorer, and you can apply all common file operations to it, including dragging the file around the project, or using the Property Browser to change file properties (such as whether the RODL file will be embedded as resource). You can also double-click the RODL file in Solution Explorer to edit it.

CodeGear Delphi does not allow adding non-code files to the project, as such the RODL file will not show in Project Manager. Instead, a special {#ROGEN directive in the .dpr file is used to reference the RODL file, and the RemObjects menu must be used to edit the RODL in Service Builder.

Also, CodeGear Developer Studio does not support embedding resources in C# projects, so any functionality requiring an embedded RODL file (such as use of Service Tester) will not work in this combination of tools - we recommend using Visual Studio for C# development.

Accessing RODL Files from Your Own Code

Both editions of RemObjects SDK provide class hierarchies that allow you to load and work with RODL files in a type-safe manner without having to manually parse the XML format. These classes are based around the RodlLibrary (.NET) and TRODLLibrary (Delphi) classes and provide properties and sub-classes that give access to all elements of a loaded RODL.


See Also


Ro-48.png

Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Delphi and Xcode

GlossaryArchitectureArticlesFeaturesLibrarySamples

Navigation
products
hubs
special
Toolbox