MegaDemo Sample
Purpose
This comprehensive example illustrates many of the features of theRemObjects SDK by providing benchmark facilities for the various protocols and channels supported.
The following are included:
- message types
- TROBINMessage
- TROSOAPMessage
- TROPostMessage
- TROServerMultiMessage
- transport channels
- TROWinMessageChannel
- TROWinInetHTTPChannel
- TROIndyHTTPChannel
- TROIndyTCPChannel
- message encrypting and compression
The tests you can perform are very comprehensive. In particular, try the Stress Test which runs all the tests once or many times.
.
You can also specify how much information is displayed about the test results by using Write Test Info,Verbose and Enable Log.
Examine the Code
- See how the Twelve 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 MegaDemoService.
-
Check how the server methods were implemented in
MegaDemoService_Impl.pas.
-
Examine the simple code needed to invoke the methods in
MegaDemoClientMain.pas.