FirstSample
Purpose
This sample provides an introduction to using the Delphi edition of the RemObjects SDK product. The example shows how to define/implement methods on the server and how to access them from the client. The data consists of name information and four simple methods are provided by the service: Nicknames, VerifyName, CheckName and FullNames.
Getting Started
- Build or compile both projects.
- Launch the server (via the menu option: RemObjects | Launch Server Executable).
- Ensure that FirstSampleClient is the selected project and run it.
- Check that the client buttons work as expected.
- Modify the server names list and retry client actions.
Examine the Code
-
See how the four methods were defined by editing the service library.
Do this by making the server the selected project and
by using the menu option: RemObjects | Edit Service Library.
Note: if you don't see this menu option but see 'Service Builder' instead,
you still have the client set as the current project.
Examine the methods added to FirstSampleService.
-
Check how the server methods were implemented in
FirstSampleService_Impl.pas.
-
Examine the simple code needed to invoke the methods in
FirstSampleClientMain.pas.